Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Syntactic Confectionery Delight
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2014-04-24 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls