use Carp 'croak'; chdir( '/cage' ); chroot( '/cage' ) || die $!; croak 'bad';
use POSIX 'exit'; require Carp::Heavy; # see last example chdir( '/tmp' ); chroot( '/tmp' ) || die $!; exit(0);
chdir( '/tmp' );
chroot( '/tmp' ) || die $!;
print shift(@ARGV) =~ m/(\p{IsPrint}+)/;
# html decode: 0 -> '0'
chdir( '/tmp' );
chroot( '/tmp' ) || die $!;
$_ = shift;
s{ &\#(\d+) }{ chr($1) }xeg;
print m{(\w+)};
# To: bla@fasel.com, me@example.org,...
if ( $header =~m{ ^To: ([^,]+,){3,} }xim } ) {
...
}
# <a href=... title="...".. >
1 m{ <\w+ #Tag
2 (
3 \s+\w+ #Attribute Name
4 ( \s*=\s* (
5 "[^"]*" # quoted Value
6 |[^"\s]+ # unquoted
7 )?)? # attr|attr=|attr=value
8 )*
9 \s*> }xs;