Thread printenv
(4 answers)
Opened by Sekte at 2009-11-21 18:11 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 use Data::Dumper; local $Data::Dumper::Sortkeys = 1; my $dump = Dumper \%ENV; for ($dump) { s/&/&/g; s/</</g; s/>/>/g; } print "<pre>$dump</pre>"; sollte reichen 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 |