Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: different output from gzwrite

by jsprat (Curate)
on Jul 12, 2003 at 04:07 UTC ( #273595=note: print w/ replies, xml ) Need Help??

in reply to different output from gzwrite

Just gzwrite @your_array;

The reason is the same reason you get similar output if you print "@some_array"; when each element ends with a newline. Each element is separated with $" (also known as the list separator), which defaults to a space. Either leave out the quotes, locally change $" to '' or use something like join '', @your_array;

For an in depth treatment see perlfaq5 and search for "weird spaces" - or at a prompt type perldoc -q "weird spaces"

Good luck!

Comment on Re: different output from gzwrite
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-11-25 19:42 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (687 votes), past polls