Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: split and join

by jeroenes (Priest)
on Jan 08, 2001 at 18:46 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://50484]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found