madbombX has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; my @x; push @x, "this"; push @x, "that"; print "This is \@x:\n"; print @x; print "\n\nThis is \@x\\n:\n"; print @x ."\n"; __OUTPUT__ This is @x: thisthat This is @x\n: 2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing Arrays in Scalar Context
by jdporter (Paladin) on Nov 28, 2006 at 16:46 UTC | |
|
Re: Printing Arrays in Scalar Context
by davorg (Chancellor) on Nov 28, 2006 at 16:42 UTC | |
|
Re: Printing Arrays in Scalar Context
by tirwhan (Abbot) on Nov 28, 2006 at 16:46 UTC | |
|
Re: Printing Arrays in Scalar Context
by jwkrahn (Abbot) on Nov 28, 2006 at 16:47 UTC | |
|
Re: Printing Arrays in Scalar Context
by ikegami (Patriarch) on Nov 28, 2006 at 18:21 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |