Help for this page

Select Code to Download


  1. or download this
    if ( $line =~ $ip ) {
        push (@fwlog, $line);
        print "$line";
    }
    
  2. or download this
    print "$_\n" foreach ( @fwlog );
    
  3. or download this
    open LOG,  "$logfile" or die "Can't open $logfile: $!\n";
    my @fwlog = grep { $ip } <LOG>;
    close LOG;
    
  4. 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"'