in reply to mapping warning from an eval code to actual line in text

Note that the special variable $_ does not have to be specified in pattern matching:
#!/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
    Good one... I'll have a look. Still don't know how to map the numbers in eval to the code... But, it gives me something to try... Thanks.