Hi,
As join is a build in I guess it should/could be called without
parenthesis.
However these two lines gives me two different answers.
my @strings = ('foo', 'bar');
my $string1 = q{('} . join q{', '}, @strings . q{')};
my $string2 = q{('} . join(q{', '}, @strings) . q{')};
print "$string1\n";
print "$string2\n";
Output:
('2')
('foo', 'bar')
Anyone who knows/understands why?
Best regards,
freefox
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/