Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Transforming a scalar to an array

by Anonymous Monk
on Jul 15, 2009 at 15:07 UTC ( [id://780351]=note: print w/replies, xml ) Need Help??


in reply to Transforming a scalar to an array

sure, use split

now you just have to know where to split, since you don't have any newlines..

Replies are listed 'Best First'.
Re^2: Transforming a scalar to an array
by AnomalousMonk (Archbishop) on Jul 15, 2009 at 16:44 UTC
    ... since you don't have any newlines.
    But the newlines are all still there: they are embedded within the single string that represents the data read from the entire file.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2025-12-17 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (98 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.