good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi All,
I'm getting the error: Use of uninitialized value in string at Z:/My Documents/Workspace/myscript.pl line 23 when trying to read something from a file My file contains just one line: "Version=2010-09-01_17-29-04 Build=26" and i'm trying to get the last numbers i.e "26". Any ideas? Appreciate it thanks!
my $dir1 = 'Z:\My Documents\Workspace'
open (VFILE, $versionFile)|| die $!; print "$vdata\n";
(my $build)=($vdata=~/=(\d+)$/); In reply to Use of uninitialized value when using regex by PerlScholar
|
|