Ling F. Zhang wrote:
say I have array: @a=["I","LOVE","PERL"]
You have created a reference to an anonymous array here, I guess you meant @a = qw/I LOVE PERL/;
I would like to make a scalar: $b="I Love Perl\n"
Please don't name variables as $b etc, they make the code unreadable and read through this doc (perldoc -f sort)
This will do what you want
my $arr_to_str = "@a";
can I do this with a simple one-liner?
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]