[rochester-pm-list] foreach question...
Brian Mathis
bmathis at directedge.com
Wed Feb 9 14:33:26 CST 2000
On Wed, 9 Feb 2000, Fred Edmister wrote:
> I just meant any array, or method of opening the file and
> splitting the lines into individule editable variables... I guess I should
> have said if I use "foreach" OR any type of array, scalar, or any other
> method... All I was curious about was if it's possible to split the lines
> and make them singally editable and appendable to a text file... Otherwise,
> I'l leave it as just opening the file, and having it edited that way... But
> thank you for the reference to the docs...
>
> Fred
You mean, like:
open(FILE, "< file.txt") or die("Cant open file: $!");
@lines = <FILE>;
close FILE;
?
--
Brian Mathis
Direct Edge
http://www.directedge.com
More information about the Rochester-pm
mailing list