Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Space prepended to Array Print

by 2teez (Vicar)
on Jun 07, 2013 at 19:16 UTC ( [id://1037740]=note: print w/replies, xml ) Need Help??


in reply to Space prepended to Array Print

Hi JockoHelios,
You have been accurately answered. But if you wouldn't mind a little illustration using some code snippets:

use warnings; use strict; my @array = map{$_}<DATA>; print @array; print $/; print join '' => @array; print $/; print "@array"; print $/; { local $"=''; print "@array"; } __DATA__ 20130516,530,730 20130516,731,1100 20130516,1101,1200
Output:
20130516,530,730 20130516,731,1100 20130516,1101,1200 20130516,530,730 20130516,731,1100 20130516,1101,1200 20130516,530,730 20130516,731,1100 ## note here 20130516,1101,1200 ## and here 20130516,530,730 20130516,731,1100 20130516,1101,1200
Note:
I don't know how the OP is getting his/her input.
Hope this help in some way.
++ for toolic

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-26 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found