- or download this
if ( $line =~ $ip ) {
push (@fwlog, $line);
print "$line";
}
- or download this
print "$_\n" foreach ( @fwlog );
- or download this
open LOG, "$logfile" or die "Can't open $logfile: $!\n";
my @fwlog = grep { $ip } <LOG>;
close LOG;
- or download this
perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>);
+$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth
+er_name\n"'