[Perl] undefind variable

Offer Kaye oferk at oren.co.il
Tue Aug 27 04:04:21 PDT 2002


> 
> 
> 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