Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by Util (Priest)
on May 15, 2003 at 21:36 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://258531]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-16 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found