Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: The "<" in the grep block

by Athanasius (Monsignor)
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 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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995211]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-07-26 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls