- or download this
## perltidy -olq -csc -csci=10 -cscl="sub : BEGIN END" -otr -opr -ce
+-nibc -i=4 -pt=0 "-nsak=*"
## perltidy -olq -csc -otr -opr -ce -nibc -i=4 -pt=0 "-nsak=*"
- or download this
my ($NL,$SKIP) = ($STATIC{NL},$STATIC{SKIP});
if ($STATIC{CHAR_NL} eq "NL"){
$NL = "\n";
...
}else{
$SKIP = "$STATIC{CMD_SKIP}$NL";
}
- or download this
my( $NL, $SKIP ) = optionize_nl_skip( \%STATIC );
- or download this
use strict;
use warnings;
use Test::More qw/ no_plan /;;
...
}
return( $NL, $SKIP );
}
- or download this
## SUB SENDMAIL ### DOES: generates and sends e-mail to all recipie
+nts with attached csv report ##################
- or download this
$TEMP[0] =~ s/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[
+0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)://;
- or download this
{
my( $commands, $matches ) ;
( $_, $commands, $matches ) = sanitize_and_then_some_c
+ommands_matches(
...
$DATA{$IP}->{COMMANDS} = $commands;
$DATA{$IP}->{MATCHES} = $matches;
}
- or download this
$ALL_CAPS_HERE constants only (beware clashes with perl vars!)
$Some_Caps_Here package-wide global/static
$no_caps_here function scope my() or local() variables