Thread Leerzeichen in Perl??? (4 answers)
Opened by olruebe01 at 2006-03-14 19:01

pq
 2006-03-15 11:06
#63790 #63790
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
[quote=lichtkind,14.03.2006, 18:21]besser als
Code (perl): (dl )
while ($ordner =~ / /) {$ordner=~ s/ /_/;}

ist auf jeden fall
Code (perl): (dl )
$ordner =~ tr/ /_/g;

[/quote]
perl -wle'$v =~ tr/ /_/g'
Bareword found where operator expected at -e line 1, near "tr/ /_/g"
Unquoted string "g" may clash with future reserved word at -e line 1.
syntax error at -e line 1, next token ???
Execution of -e aborted due to compilation errors.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Leerzeichen in Perl???