stuffy has asked for the wisdom of the Perl Monks concerning the following question:
my output is :my @array=[1,"word",2]; my $print_string = join ('|', @array); print "$print_string \n"; print Dumper(@array); print Dumper($print_string);
I would expect that $print_string = "1 | word | 2"$VAR1 = [ 1, 'word', 2 ]; $VAR1 = 'ARRAY(0x8153c28)';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: my $var = join('|',@array) not behaving
by ikegami (Patriarch) on May 09, 2008 at 02:18 UTC | |
|
Re: my $var = join('|',@array) not behaving
by grep (Monsignor) on May 09, 2008 at 02:24 UTC | |
by chromatic (Archbishop) on May 09, 2008 at 06:50 UTC | |
by ikegami (Patriarch) on May 09, 2008 at 07:16 UTC | |
|
Re: my $var = join('|',@array) not behaving
by ww (Archbishop) on May 09, 2008 at 02:39 UTC |