[Perl] undefind variable
Offer Kaye
oferk at oren.co.il
Tue Aug 27 08:01:02 PDT 2002
I'm resending this answer as the first one apparently got lost... :-(
Apologies if you did get this twice.
Offer Kaye
> -----Original Message-----
>
> >
> >
> > Im sorry but I pressed send before typing thanks....
> >
> > Lior Amir wrote:
> >
> > > Hello All,
> > > How do I check if a varialbe is or is not defind?
> > >
>
> Use "defined()", as in "print if defined $switch{'D'};".
> For more info read "perldoc -f defined".
>
> You're welcome :-)
> Offer Kaye
More information about the Perl
mailing list