Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Question about concatenation

by eyepopslikeamosquito (Canon)
on Dec 23, 2012 at 20:27 UTC ( #1010120=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my @one_to_six = 1..6;
    print "Counting up: " . @one_to_six . "\n";  # scalar context (no. of 
    +elts)
    print "Counting up: " , @one_to_six , "\n";  # list context
    
  2. or download this
    Use of uninitialized value $. in range (or flip) at cnt.pl line 4.
    Counting up:
    ...
    Counting up: 1 2 3 4 5 6
    Counting up: 6
    Counting up: 123456
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2015-07-07 09:35 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 (88 votes), past polls