Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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)


Comment on Re: split and join
Select or Download Code

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 romping around the Monastery: (16)
As of 2015-07-06 14:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (75 votes), past polls