Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 wandering the Monastery: (13)
As of 2014-09-22 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls