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

Re: Clubbing array elements together:

by choroba (Canon)
on Jan 29, 2013 at 11:33 UTC ( #1015861=note: print w/ replies, xml ) Need Help??


in reply to Clubbing array elements together:

You can profit from the input record separator $/:

$/ = q(); while (<>) { s/\n//g; print "$_\n"; }
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: Clubbing array elements together:
Download Code
Replies are listed 'Best First'.
Re^2: Clubbing array elements together:
by ;-) (Initiate) on Jan 29, 2013 at 16:49 UTC
    How do you wanna apply this on arrays?

    Though, I think you have the right idea, the array will most likely originate from a file-read.

    So it's obviously a XY Problem and should be solved directly.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-31 03:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls