- or download this
my $flock = 1; # set to true to flock
my $timeout = 10; # set to number of seconds before flock timeout
...
DieNice("Can't lock file '$file': $!\n") if ++$count >= $timeout
+;
}
}
- or download this
$mode =~ tr#a-z_##cd; # untaint that param!
- or download this
if ( $mode =~ /^([a-z_]+)_go$/ ) {
$page = $1 or die "no page given!";
- or download this
open FILE, ">>$file" or die "Can't append to $file, Perl says $!\n";
- or download this
sub main {
...
$draw->html_end();
}
- or download this
sub main {
...
}
$draw->html_end();
}
- or download this
sub DieNice {
...
$unindent =~ s/^[ \t]+//gm;
return $unindent;
}