use strict; use warnings; use diagnostics; #### print "$var\n"; print "@things\n"; # array with spaces between elements #### chomp $var; print ":$var:\n"; #### print ":$_:", ord($_), "\n" for (split //, $str) #### use Data::Dumper; print Dumper(\%hash); print Dumper($ref); #### print ref $ref, "\n"; #### $ perl -MO=Deparse program.pl #### open my $fh, '<', 'foo.txt' or die "can not open foo.txt: $!"; #### if (system $cmd) { print "Error: $? for command $cmd" } else { print "Command $cmd is OK" } $out = `$cmd`; print $? if $?; #### eval { do_something() }; warn $@ if $@; #### # what the heck does /^\s+$/ mean? use YAPE::Regex::Explain; print YAPE::Regex::Explain->new('/^\s+$/')->explain(); #### use WWW::Mechanize; if ($mech->success()) { ... }