Hi All,

I am wondering if there is a difference between:
The last one I believe I know the answer, empty string still defined, but I
sure wanna clear view..:-)
PS: will use strict / warning will make a difference ?

do_somthing if ($legend);

or 

do_something if (defined($legend));

or

do_something if ($legend == "");


another question:
is there a difference between

@arr = ();

And

@arr;

Since both of them showed nothing when trying to do this:
print "Yea" if (@arr);


thanks
Chanan

_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to