Thread here-document (2 answers)
Opened by Gast at 2007-06-14 20:26

pq
 2007-06-14 21:38
#77536 #77536
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
das hier geht:
Code: (dl )
1
2
3
4
5
(my $foo = <<EOC) =~ s/^\s+//gm;
echo hi there
echo lo there
EOC
print $foo;
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 here-document