Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use diagnostics;
    
  2. or download this
    $ perl -c 298_SoPW.pl
    Warning: Use of "-s" without parentheses is ambiguous at 298_SoPW.pl l
    +ine 36 (#1)
    ...
    Uncaught exception from user code:
            Unterminated <> operator at 298_SoPW.pl line 36.
     at 298_SoPW.pl line 36
    
  3. or download this
    my @selection =  grep { -s > 1000 } @ARGV;
    
  4. or download this
         -s($file) + 1024  # probably wrong; same as -s($file + 1024)
        (-s $file) + 1024  # correct