Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Error in the example code

by davorg (Chancellor)
on Nov 27, 2001 at 15:40 UTC ( #127780=note: print w/replies, xml ) Need Help??


in reply to Error in the example code
in thread split and join

my @arr = (1 .. 10); print join(', ', @arr[0 .. $#arr - 1]), " & $arr[$#arr]\n";
--
<http://www.dave.org.uk>

"The first rule of Perl club is you don't talk about Perl club."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://127780]
help
Chatterbox?
[Corion]: Yeah (although their mother was somewhat stressed out regardless) - but it made for an otherwise relaxed evening ;)
[ambrus]: Corion: nice.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-12-08 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (139 votes). Check out past polls.