Thread @ARGV und Escape Zeichen! (3 answers)
Opened by kettle at 2010-08-17 16:19

GwenDragon
 2010-08-17 16:28
#140725 #140725
User since
2005-01-17
14785 Artikel
Admin1
[Homepage]
user image
$a und $b solltest du nicht benutzen, das sind Spezialvariablen für Vergleiche bei sort.
Quote
$a
$b Special package variables when using sort(), see "sort" in
perlfunc. Because of this specialness $a and $b don't need to be
declared (using use vars, or our()) even when using the "strict
'vars'" pragma. Don't lexicalize them with "my $a" or "my $b" if
you want to be able to use them in the sort() comparison block
or function.
Quelle: perldoc perlvar

Was soll denn da interpolieren?
Tut die Shell auch nicht.

bash-3.1$ xxx="ABC\n\n1"
bash-3.1$ echo $xxx
ABC\n\n1
bash-3.1$

Last edited: 2010-08-17 16:54:55 +0200 (CEST)

View full thread @ARGV und Escape Zeichen!