[Israel.pm] FW: newbie question
Chanan Berler
chananb at centerity.com
Thu Jan 15 05:22:55 PST 2009
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
More information about the Perl
mailing list