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

Re: RES: [PBML] Is null?

Expand Messages
  • Aaron F Young
    you might also try if (defined($variable)) { print It s been defined n ; } else { print No value n ; } on Fri, 5 Jan 2001 Cássio Miyke typed ... -- Aaron
    Message 1 of 6 , Jan 5, 2001
    • 0 Attachment
      you might also try


      if (defined($variable)) {
      print "It's been defined\n";
      } else {
      print "No value\n";
      }
      on Fri, 5 Jan 2001 Cássio Miyke typed

      > Ok Olly,
      >
      > Thank you very much for your help.
      > Cássio Miyke
      >
      >
      > -----Mensagem original-----
      > De: Oliver Manickum [mailto:oliver@...]
      > Enviada em: Sexta-feira, 5 de Janeiro de 2001 10:45
      > Para: perl-beginner@egroups.com
      > Assunto: RE: [PBML] Is null?
      >
      >
      > Hey Cassio,
      >
      > i just do a if (length($variable)) to see if there is a value in it ...
      >
      > - Olly
      > -----Original Message-----
      > From: Cássio Miyke [mailto:cassio@...]
      > Sent: 05 January 2001 03:36
      > To: perl-beginner@egroups.com
      > Subject: [PBML] Is null?
      >
      >
      > Hello,
      >
      > I am a novice in Perl and I need to test if a variable has a null value
      > or not. This variable receives a numeric value (when it is not null, of
      > course) and I want to test it using "if" statement. How can I write this
      > condition?
      >
      > Thanks...
      > Cássio Miyke
      >
      >
      >
      >
      >
      > eGroups Sponsor
      >
      >
      >

      --
      Aaron
      -----
      Unfortunately, because the prank was unplanned and the user found himself in
      respiratory distress due to excessive laughter, he was unable to make any
      timely comments on US Politics or foreign affairs.
      -http://www.boredom.org/cnn/statement.html
    Your message has been successfully submitted and would be delivered to recipients shortly.