SVN: toys/rsget.pl/rsget.pl
sparky
sparky at pld-linux.org
Sat Oct 3 19:42:38 CEST 2009
Author: sparky
Date: Sat Oct 3 19:42:38 2009
New Revision: 10665
Modified:
toys/rsget.pl/rsget.pl
Log:
- fixed trimming
Modified: toys/rsget.pl/rsget.pl
==============================================================================
--- toys/rsget.pl/rsget.pl (original)
+++ toys/rsget.pl/rsget.pl Sat Oct 3 19:42:38 2009
@@ -67,9 +67,8 @@
$line++;
next if /^\s*(?:#.*)?$/;
chomp;
- if ( s/^\s*([a-z_]+)\s*=\s*// ) {
- s/\s+$//;
- set( $1, $_, "config file, line $line" );
+ if ( s/^\s*([a-z_]+)\s*=\s*(.*?)\s*$// ) {
+ set( $1, $2, "config file, line $line" );
next;
}
warn "Incorrect config line: $_\n";
More information about the pld-cvs-commit
mailing list