Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: split function

by kielstirling (Scribe)
on Jan 25, 2012 at 03:28 UTC ( #949816=note: print w/ replies, xml ) Need Help??


in reply to split function

Hi,

Kind of hard to help you with the code provided.

split returns an array so I would do something like

my @values = split ';', "123;abc;456;def;123;;123";

Then loop the array and print each element to the file

print FILE "$_,\n" foreach @values;

As for a limit I would assume that the limit would be the system memory

- Kiel Stirling


Comment on Re: split function
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2015-07-04 03:33 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 (57 votes), past polls