Hi, Jerry!
Is this what you mean:

# lines.pl
use strict;

my @lines = ("Line 1", "Line 2", "Line 3");
foreach my $line (@lines)
{
  print $line, "\n";
}
#

Will output:
Line 1
Line 2
Line 3

Yevgeny.





From: "Jerry Preston" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: "Beginners Perl" <[EMAIL PROTECTED]>
Subject: print @$lines
Date: Mon, 21 Oct 2002 15:31:20 -0500

Hi!

How would you write a foreach loop to go through @$lines on line at a time?

Thanks,

Jerry

_________________________________________________________________
Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to