Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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.

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

Comment on Re: split and join
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2015-11-27 20:20 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls