Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Resource for command line "one-liner" interpretation

by Util (Priest)
on May 15, 2003 at 21:36 UTC ( #258531=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -MO=Deparse -ne 'chomp;$s+=$_ if($_>10240);END{print "$s\n"}'
    
  2. or download this
    LINE: while (defined($_ = <ARGV>)) {
        chomp $_;
    ...
        ;
    }
    -e syntax OK
    
  3. or download this
    while (<>) {
        chomp;
        $s += $_ if $_ > 10240;
    }
    print "$s\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://258531]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2017-10-21 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (269 votes). Check out past polls.

    Notices?