On 11-05-05 10:10 AM, eventual wrote:
Hi, How do I change the default list seperator.
I tried the following but it wont work. Thanks
$testing = "anything in here";
@rubbish = $testing;
$" = "in";
print "\@rubbish now have " . $#rubbish + 1 . " elements\n";
Try:
@rubbish = qw( anything in here );
$" = "in";
print "@rubbish now have " . $#rubbish + 1 . " elements\n";
Also:
print "@rubbish now have " . scalar( @rubbish ) . " elements\n";
--
Just my 0.00000002 million dollars worth,
Shawn
Confusion is the first step of understanding.
Programming is as much about organization and communication
as it is about coding.
The secret to great software: Fail early & often.
Eliminate software piracy: use only FLOSS.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/