in reply to $scalar => 'WTF?';
If you enabled warnings, you should have seen:
Useless use of a constant in void context at ...
What you coded is exactly the same as:
my $x, 3;
Which in turn is equivalent to:
my $x; 3;
You declared but did not initialise $x and put a constant in a void context.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: $scalar => 'WTF?';
by {}think (Sexton) on Sep 07, 2011 at 01:05 UTC |