|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^3: perl javascript help passing varableby thunders (Priest) |
| on Oct 16, 2009 at 15:17 UTC ( #801573=note: print w/ replies, xml ) | Need Help?? |
|
If it was an array it'd be called @number. However $number may be an array reference. If it is an array reference you can dereference it inside of a double quoted string, as in the example below.
prints something like this:
Perl's default behavior is to separate an arrays elements with spaces in double quoted context. If you instead wanted to separate with commas you could do something like this:
prints:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||