in reply to Re: Use of uninitialized value $_ in pattern match (m//)?
in thread Use of uninitialized value $_ in pattern match (m//)?
Hi, thanks for your time! I am trying to match against filenames, from files that are in the path I specify. I modified my script to
$match =~/MV(\d{4})/; $moved = $1; print "$moved \n";
but although I initialise my $match outside of the loops, I still get the same error as described initially :(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use of uninitialized value $_ in pattern match (m//)?
by poj (Abbot) on Feb 29, 2016 at 15:46 UTC | |
|
Re^3: Use of uninitialized value $_ in pattern match (m//)?
by Corion (Patriarch) on Feb 29, 2016 at 15:42 UTC | |
|
Re^3: Use of uninitialized value $_ in pattern match (m//)?
by AnomalousMonk (Archbishop) on Feb 29, 2016 at 16:22 UTC |