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

Re^3: How do i extract 3 variables from each line in a file, and print them to a new file

by bageler (Hermit)
on Jul 08, 2005 at 19:43 UTC ( [id://473555]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        @matches = $spooler =~ /(\d+)ms/g;
        foreach $a (@matches){
            print  $a .",";
        }
        print "\n";
    
  2. or download this
    print join(',',$spooler=~/(\d+)ms/g)."\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-16 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found