Please, help us to help you. If you want us to test our solutions, provide sample input data (see SSCCE).
If you just need general advice, here it is:
my $now = localtime;
If you plan to reopen the file for reading later, don't forget to close the filehandle (or just let it go out of scope).open my $dshield, '>', "$save_dir/dshield.rsc" or die $!; print {$dshield} "# Generated by Joshaven Potter on $now\n";
for my $line (split /\R/, $contents) { print {$fh} "add list=blacklist...\n" if /^[0-9]{1,3}\./; }
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
In reply to Re: Shell Script in Perl
by choroba
in thread Shell Script in Perl
by mozerd
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |