- or download this
sub printlog {
print LOG @_ unless $nolog;
}
printlog "======== done =========\n";
- or download this
print LOG "======== done =========\n" unless $nolog;
- or download this
BEGIN {
my $nolog = 0;
...
}
setlog 1;
printlog "======== done =========\n";