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

Re: Re : [PBML] Perl Undefined variables..Please help

Expand Messages
  • pavan s
    Thank you guys for giving a quick response especialy Shawn and Sylvain Pascal.. This perl is like a mystery for me and u have unravelled it.. Because of this
    Message 1 of 4 , Jul 25, 2007
    • 0 Attachment
      Thank you guys for giving a quick response especialy Shawn and Sylvain
      Pascal..
      This perl is like a mystery for me and u have unravelled it..
      Because of this group and support from u all , i am no longer a perl rookie
      i think :)


      On 7/24/07, Sylvain Pascal <sylvainpascal@...> wrote:
      >
      > Hello,
      > I would say it is the null pointer value (even if we don't hear about
      > pointer in Java :) )
      > But the undefined value is called in Perl "undef" and I think, if I
      > remember well, that's a real value.. just try this:
      > $a{'abc'}{'place' }= undef;
      > You should have the same result... by default a non-initialised variable
      > got always this pure value: undef. I though that's strange: an undefined
      > value which got a defined value? Is there anything in the world which got
      > nothing even in meaning? The only way to say each thing got a value is to
      > remember that even what doesn't exist has a value... undefined. : D
      > Have a nice day, : D
      >
      > Sylvain
      >
      > ----- Message d'origine ----
      > De : pavan s <pavan8sachi@... <pavan8sachi%40gmail.com>>
      > À : perl-beginner@yahoogroups.com <perl-beginner%40yahoogroups.com>
      > Envoyé le : Mardi, 24 Juillet 2007, 6h24mn 56s
      > Objet : [PBML] Perl Undefined variables..Please help
      >
      >
      > Hi guys,
      >
      > Hope u all doing good?
      >
      > can anyone explain to me wat is a perl undefined value?
      > i am confused on this and also i need to know the java equivalent of this
      > ..
      > could it be null check or check for a empty string or a 0 ?
      > this is really confusing to me...
      >
      > this is code...
      >
      > *my %a;*
      >
      > *$a{'abc'}{' name'}='peter' ;
      > $a{'abc'}{'place' };
      > if (!defined $a{'abc'}{'place' }){
      >
      > print "false not defined";
      > }*
      >
      > *else
      > print "true";*
      >
      > **
      >
      > as u can see ia am a complete perl rookie...please help :)
      >
      > [Non-text portions of this message have been removed]
      >
      > __________________________________________________________
      > Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo!
      > Mail
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.