Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -l
    use strict;
    ...
    @ARGV = map{glob} @ARGV;
    my @selection =  grep { -s < 1000 } @ARGV;
    print for @selection;
    
  2. or download this
    Warning: Use of "-s" without parentheses is ambiguous at script.pl lin
    +e 7.
    Unterminated <> operator at script.pl line 7.
    
  3. or download this
    #!/usr/bin/perl -l
    use strict;
    ...
    @ARGV = map{glob} @ARGV;
    my @selection =  grep { (-s) < 1000 } @ARGV;
    print for @selection;
    
  4. or download this
    my @smaller_than_1000 = grep { -s < 1000 } @ARGV;