Thread Leerzeichen in Perl???
(4 answers)
Opened by olruebe01 at 2006-03-14 19:01
[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: Wie frage ich & perlintro brian's Leitfaden für jedes Perl-Problem |