Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by Transient (Hermit)
on Jul 08, 2005 at 18:12 UTC ( #473524=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    map { $_ =~ s/\D//g; $_ } split(':',(split(' ',$_))[-1]);
    
  2. or download this
    my @split_results = split(':',(split(' ',$_))[-1]);
    map { $_ =~ s/\D//g; $_ } @split_results;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2021-09-21 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?