Loading ...
Sorry, an error occurred while loading the content.
 

RE: [PBML] I cannot understand this output....pls explain.

Expand Messages
  • Fernando Luna
    Because == is for numeric comparisons Use eq ... As in If ($a eq $b) { ... From: fd97616 [mailto:fd97616@yahoo.com] Sent: Tuesday, February 03, 2004 5:23 PM
    Message 1 of 1 , Feb 3, 2004
      Because "==" is for numeric comparisons

      Use "eq"...

      As in

      If ($a eq $b) {



      -----Original Message-----
      From: fd97616 [mailto:fd97616@...]
      Sent: Tuesday, February 03, 2004 5:23 PM
      To: perl-beginner@yahoogroups.com
      Subject: [PBML] I cannot understand this output....pls explain.


      $a = "Hello";

      $b = "world";

      if ($a == $b){
      print "Fine\n";
      }


      this is the code....
      here the Fine is getting printed....

      so actaully means that $a is equal to $b...
      how is that possible.....
      I cannot understand this.

      can someone please explain this to me.
      thanks.
      kaushik.




      Unsubscribing info is here:
      http://help.yahoo.com/help/us/groups/groups-32.html

      Yahoo! Groups Links

      To visit your group on the web, go to:
      http://groups.yahoo.com/group/perl-beginner/

      To unsubscribe from this group, send an email to:
      perl-beginner-unsubscribe@yahoogroups.com

      Your use of Yahoo! Groups is subject to:
      http://docs.yahoo.com/info/terms/
    Your message has been successfully submitted and would be delivered to recipients shortly.