Thread Ersetzen von Zeichen "/" In Variablen (9 answers)
Opened by bora99 at 2010-05-10 13:09

pq
 2010-05-10 13:25
#136956 #136956
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
das macht keinen unterschied. zwischen single quotes escaped der backslash nur einen weiteren backslash und natürlich single quotes selbst:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
$ perl -w
my $akt_root_dir = 'G:\Dir';

print "$akt_root_dir\n";
__END__
G:\Dir

$ perl -w
my $akt_root_dir = 'G:\\Dir';

print "$akt_root_dir\n";
__END__
G:\Dir
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 Ersetzen von Zeichen "/" In Variablen