matth has asked for the wisdom of the Perl Monks concerning the following question:
I would like to remove white space for the variable $name that is used to name the output files. Can any monks offer support and guidance to a man who is new to the cloth?if ($line =~ /^%(.{1,100})$/){ s/\s//g; $name = $1; print "EEEEEEEEEEEEEEEEEEEEEEEEEEEE: $name\n"; } $outfile = "outfile['$name'].txt"; open (OUTFILE, "+>>$outfile");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: substitution (s///)
by Enlil (Parson) on Dec 01, 2002 at 19:36 UTC | |
|
Re: substitution (s///)
by spurperl (Priest) on Dec 02, 2002 at 06:56 UTC | |
by djantzen (Priest) on Dec 02, 2002 at 12:57 UTC |