Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Populating an array

by c-era (Curate)
on Mar 28, 2001 at 01:57 UTC ( [id://67652]=note: print w/replies, xml ) Need Help??


in reply to Populating an array

Set the input record separator to two newlines:
$/ = "\n\n"; # Sets the input record separator to two newlines my @array = <FILE>; # Put the file in an array $/ = "\n"; # Sets the input record separator to one newline (the defau +lt)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-19 05:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found