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.
In reply to Re: $scalar => 'WTF?';
by BrowserUk
in thread $scalar => 'WTF?';
by {}think
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |