Perl Programming | ||
---|---|---|
Standard Files | ||
print STDOUT "Hello, world.\n"; # STDOUT not needed open STDERR, ">> logfile" or die "Can't redirect errors to log: $!"; print STDERR "Oh no, here's an error message.\n"; warn "Oh no, here's another error message.\n"; close STDERR; |
||
Previous | http://stuff.mit.edu/iap/perl/ | Next |