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

Re: Space prepended to Array Print

by Laurent_R (Prior)
on Jun 07, 2013 at 18:57 UTC ( #1037733=note: print w/ replies, xml ) Need Help??


in reply to Space prepended to Array Print

When you print an array with this syntax:

print "@LoadedArray";

Perl adds a space to seperate the array elements. Obviously your elements also have a c arriage return at the end, so that you get a new line and then a space at the begin ning of the next line (the start of the next element).

EDIT: I was too slow, Toolic's answer came before mine.


Comment on Re: Space prepended to Array Print
Download Code
Re^2: Space prepended to Array Print
by JockoHelios (Scribe) on Jun 07, 2013 at 19:05 UTC
    I get beaten to the post more often than not. Mostly because I'm not anywhere near as Perl-masterful as I'd like to be. Still counts as an up, though ;)
    Dyslexics Untie !!!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2015-07-04 04:23 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 (57 votes), past polls