Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: The "<" in the grep block

by Athanasius (Chancellor)
on Sep 23, 2012 at 15:25 UTC ( #995211=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use strict;
    use warnings;
    use diagnostics;
  2. or download this
    $ perl -c
    Warning: Use of "-s" without parentheses is ambiguous at l
    +ine 36 (#1)
    Uncaught exception from user code:
            Unterminated <> operator at line 36.
     at 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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995211]
and John Coltrane plays...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2017-06-27 20:24 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (613 votes). Check out past polls.