Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: splitting the scalar variables in an array

by Athanasius (Chancellor)
on Nov 16, 2013 at 06:55 UTC ( #1062858=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @dd = split "\n", @TotalHosts;
    
  2. or download this
    my   @dd;
    push @dd, split "\n", $_ for @TotalHosts;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1062858]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-11-20 02:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (283 votes). Check out past polls.

    Notices?