in reply to mapping warning from an eval code to actual line in text
#!/usr/bin/perl use warnings; undef $_; $x = 'abcd'; print 'yes' if $x = /a/;
The above code gives no output and the following warning:
Use of uninitialized value $_ in pattern match (m//) at ./1.pl line 6.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: mapping warning from an eval code to actual line in text
by ISAI student (Scribe) on May 10, 2013 at 11:37 UTC |