Phoenix.pm: Perl 101
Andrew Johnson
lajandy at yahoo.com
Fri Jul 7 17:20:56 CDT 2000
--- jim mckay <jimm at amug.org> wrote:
> Look on page 133 of the camel book $" is the list seperator!
>
> #!/usr/bin/perl
>
> $"=",";
> @author = ('Tom', 'Randal', 'Larry');
> print "@author\n";
> print @author;
> print "\n";
>
>
> outputs
>
> Tom,Randal,Larry
> TomRandalLarry
>
>
> VERY COOL! This is gona save me tons of time in formatting output..
>
> Jim M
>
If want to use this feature but don't want to use the double-quotes,
according to the perlvar man page you can adjust the $, special
variable for a similar effect.
Andrew Johnson
=====
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
More information about the Phoenix-pm
mailing list