IruP has asked for the wisdom of the Perl Monks concerning the following question:
2017-10-07 Note added by Athanasius: This node was copied from StackOverflow. See also Re: Extract specify values in file log using perl.
Is there any difference between these 2:
print "Undefined\n" unless defined $test;and
print "Undefined\n" unless $test;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Do I need to use defined?
by hippo (Archbishop) on Sep 07, 2017 at 08:03 UTC | |
|
Re: Do I need to use defined?
by Anonymous Monk on Sep 07, 2017 at 05:41 UTC | |
by IruP (Initiate) on Sep 07, 2017 at 05:57 UTC | |
by roboticus (Chancellor) on Sep 07, 2017 at 06:02 UTC | |
by Anonymous Monk on Sep 07, 2017 at 06:19 UTC | |
by afoken (Chancellor) on Sep 07, 2017 at 06:49 UTC | |
by Anonymous Monk on Sep 07, 2017 at 06:56 UTC | |
|