Learn about Linux
Download Linux
Get Linux help
Get special offers on:
Linux Application Dev Programming Software
Email:
<TT>@users = (eric, billy, eddie, yngwie);foreach (@users){ print "$_\n";} or @users = (eric, billy, eddie, yngwie);foreach my $user (@users){ print "$user\n";} or @users = (eric, billy, eddie, yngwie);print "$_\n" foreach @users;</TT>
#
Return to SysAdmin to SysAdmin: Approaching Perl
© Copyright 1999-2008 - SourceForge, Inc., All Rights Reserved About Linux.com - Privacy Statement - Terms of Use - Advertise - Trademark - Ask Linux Questions - Write for Us - RSS Feed ThinkGeek - Slashdot - SourceForge.net - freshmeat - Surveys - Jobs
Re:The Perl way of iterating over an array
Posted by: Administrator on July 08, 2004 02:21 AMThe "native" way to do this is:
#