Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: Re: Re: I'm so confused

by dragonchild (Archbishop)
on Nov 26, 2001 at 20:47 UTC ( #127574=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: I'm so confused
in thread I'm so confused

Instead of join to add the newlines, you want to use map. Something along the lines of:
@out = map { "$_\n" } @out;
What map does is to do the action in {} to every element in the array. :-)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2021-10-23 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (86 votes). Check out past polls.

    Notices?