>>>>> "SHC" == Shawn H Corey <shawnhco...@gmail.com> writes:

  SHC> On 11-08-21 07:33 AM, Ron Weidner wrote:
  >> Recently, I was asked to find the first occurrence of a word in a text 
file and replace it with an alternate word.  This was my solution.  As a new 
Perl programmer, I feel like this solution was too C like and not enough Perl 
like.  So, my question is what would have been the Perl like solution to this 
problem?
  >> 

  SHC> IO::Insitu  
http://search.cpan.org/~dconway/IO-InSitu-0.0.2/lib/IO/InSitu.pm

even simpler is File::Slurp::edit_file

uri

-- 
Uri Guttman  --  uri AT perlhunter DOT com  ---  http://www.perlhunter.com --
------------  Perl Developer Recruiting and Placement Services  -------------
-----  Perl Code Review, Architecture, Development, Training, Support -------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to