Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: The "<" in the grep block

by Athanasius (Canon)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2015-12-02 03:19 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (32 votes), past polls