Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Grepping with Perl: How to stop after first match?

by paulnovl (Novice)
on Dec 05, 2007 at 23:36 UTC ( [id://655252]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      # /proc/cpuinfo
      vendor_id       : IBM/S390
    
  2. or download this
      m#cpuinfo\nvendor_id\s+:\s(.*?)\n# and
      print "CPU:\t$1";
    
  3. or download this
      CPU:    IBM/S390
      CPU:    IBM/S390
      CPU:    IBM/S390
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://655252]
Approved by perrin
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-03-28 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found