Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: spliting un formatted text

by sh1tn (Priest)
on Jul 20, 2006 at 22:48 UTC ( [id://562731]=note: print w/replies, xml ) Need Help??


in reply to spliting un formatted text

use strict; use warnings; $_ =<<SQ; 34111 Some Words here 113/186 34419 Another Words here 154/129 84213 Words Words Words 140/109 SQ @_ = split /\s+(?=[0-9]+\s)/; $" = $/; print "@_"; __END__ STDOUT: 34111 Some Words here 113/186 34419 Another Words here 154/129 84213 Words Words Words 140/109


Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-24 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found