in reply to reading values from file
my $debug = shift @ARGV; print "debug mode\n" if $debug; # where is INFILE opened? while (<INFILE>) { # assuming you want what is between the '' after version chomp($old_version) && last if ($old_version) = /ver = '(.*?)'/; } close INFILE; # assuming .pro is end of projectPath my ($projlabl) = $projectPath =~ /(.*)\.pro$/; $projlabl .= 'labeler';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: reading values from file
by Aristotle (Chancellor) on Jan 24, 2006 at 17:41 UTC | |
by blazar (Canon) on Jan 24, 2006 at 18:32 UTC | |
by Aristotle (Chancellor) on Jan 24, 2006 at 18:41 UTC | |
by thedoe (Monk) on Jan 24, 2006 at 18:08 UTC | |
|
Re^2: reading values from file
by perlNinny (Beadle) on Jan 24, 2006 at 21:21 UTC |