Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: split and join

by jeroenes (Priest)
on Jan 08, 2001 at 18:46 UTC ( #50484=note: print w/replies, xml ) Need Help??


in reply to split and join

You may find supersplit useful as well. It does split/join at multiple levels, so uses multi-dimensional arrays. For example
open FILE, "data.txt" $array=supersplit('|', \*FILE );
Would result in one array containing all lines as rows and the separate items as columns. The first item for example, can be accessed by $array->[0][0]. See POD of the script for more examples and doc.

Jeroen
I was dreaming of guitarnotes that would irritate an executive kind of guy (FZ)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2016-09-28 12:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (527 votes). Check out past polls.