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

Re: Break an array. I think.

by LucaPette (Friar)
on Nov 22, 2005 at 10:12 UTC ( #510706=note: print w/replies, xml ) Need Help??


in reply to Break an array. I think.

Hi vox2000,

About:

print join(" ",@datan);
you can obtain the same behavoir more simply with:
print "@datan";
But beware the value of $" special variable.
Infact using a naked block and localizing $" you can get very nice behavoir. Try:
{ local $"=", "; print "@datan" }
Moreover, according to TMTOWTDI, you can "break" your array also with:
my $break=3; print $break!=$_ ? "$_ ": "$_\n" for (@datan);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2022-01-23 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?