perlNinny has asked for the wisdom of the Perl Monks concerning the following question:
my $debug = shift @ARGV; if ( $debug == 1) { print "debug mode\n"; } while (<INFILE>) { if (/ver =/) { $old_version = $_; $old_version =~ s/ver = '//; $old_version =~ s/'//; chomp($old_version ); close INFILE; } my $projlabl = $projectPath; $projlabl =~ s/\.pro//; $projlabl = $projlabl . "labeler";
2006-01-24 Retitled by GrandFather, as per Monastery guidelines
Original title: 'This can be more elegant'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: reading values from file
by Aristotle (Chancellor) on Jan 24, 2006 at 17:38 UTC | |
by perlNinny (Beadle) on Jan 24, 2006 at 20:53 UTC | |
by Aristotle (Chancellor) on Jan 25, 2006 at 18:25 UTC | |
Re: reading values from file
by thedoe (Monk) on Jan 24, 2006 at 17:36 UTC | |
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 | |
by perlNinny (Beadle) on Jan 24, 2006 at 21:21 UTC | |
Re: reading values from file
by smokemachine (Hermit) on Jan 24, 2006 at 17:51 UTC | |
Re: reading values from file
by kwaping (Priest) on Jan 24, 2006 at 20:52 UTC |