and it didn't retrieve the string and put it in $old_version...or at least it didn't show it on a subsequent print statement.while (<INFILE>) { # assuming you want what is between the '' after version chomp($old_version) && last if ($old_version) = /ver = '(.*?)'/; } close INFILE;
In reply to Re^2: reading values from file
by perlNinny
in thread reading values from file
by perlNinny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |