[rochester-pm-list] foreach question...

Shawn Porter sporter at rit.net
Wed Feb 9 13:54:17 CST 2000


On Wed, 9 Feb 2000, Fred Edmister wrote:

> 	If I use a "foreach" type of array,

"foreach" is not a type of array.  More on "foreach"...

% perldoc perlsyn

> is it possible to open a text file, separate each line into separate
> variables and have a script edit or delete just that line? Or is the
> only way to do it to just open the file, and append the differences?  
> (which I've already got done, I'm just trying to make this easier :)  
> )  Thanks in advance!

It is possible.  It is explained in perlfaq...

->  http://www.perl.com/CPAN-local/doc/FAQs/FAQ/PerlFAQ.html#How_do_I_change_one_line_in_a_fi

or

% perldoc perlfaq5

-- 
Shawn Porter
http://www.rit.net/sporter
work - 716-223-3610 x116
home - 716-242-8742
sporter at rit.net




More information about the Rochester-pm mailing list