my $dir1 = 'Z:\My Documents\Workspace'
my $versionFile = "$dir1\\version.txt";
open (VFILE, $versionFile)|| die $!;
my $vdata= <VFILE>;
close (VFILE);
print "$vdata\n";
(my $build)=($vdata=~/=(\d+)$/);
print "$build";#this is the problem line
In reply to Use of uninitialized value when using regex by PerlScholar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |