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

Re^2: Favourite One-liners?

by sfink (Deacon)
on Jun 28, 2005 at 19:18 UTC ( #470772=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    perl -lane 'print $last if ($F[0] ne $lastt); $last = $_; $lastt = $F[
  2. or download this
    perl -lane 'print $s += $F[2]'
  3. or download this
    find . -name 'Root' -print0 | xargs -0 perl -i -pe '$_=q(:pserver:sfin
  4. or download this
    perl -lne 'print $1 while (/\"(.*?)\"/g)' filename
  5. or download this
    perl -lne 'print $1 while (/\"((\\.|[^\"])*)\"/g)' filename
  6. or download this
    perl -lne 'print if /(\w+)::\1/ .. /^\}/' *.cpp

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2016-10-01 17:38 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (1 votes). Check out past polls.