Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://273595]
help
Chatterbox?
[Discipulus]: discutere in eatalian is neutral: but discutere with wife sounds implicitly negative..
[erix]: what's the offending signature?
[Discipulus]: 'give man a fish erix it sonds like a push towards omosexuality.. ;=)
[Discipulus]: see Re: from txt file to array erix
[erix]: yeah, I ask for the text (I don't see signatures)
[Discipulus]: dear brother karl has "Furthermore I consider that Donald Trump must be impeached as soon as possible" in his sig
[erix]: ah, thanks Discipulus
[1nickt]: erix perhaps you could kindly point out your technique to roho and everyone will be happy.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2017-06-22 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (519 votes). Check out past polls.