Re: Storing Output file.

2016-02-02 Thread Jonathan Harris via beginners
> There are good instructions here to adding the Environment Variable: >> >>>> >> >>>> >> >>>> >> http://perlmaven.com/how-to-change-inc-to-find-perl-modules-in-non-standard-locations >> >>>> >> >>>> Good

Re: Storing Output file.

2016-01-29 Thread Jonathan Harris via beginners
to file handles is the immediate future. Thanks, Jonathan On Fri, Jan 29, 2016 at 10:45 AM, Shlomi Fish wrote: > Hi Jonathan, > > On Thu, 28 Jan 2016 17:57:19 +0000 > Jonathan Harris via beginners wrote: > > > Hi, > > I found that this works, assuming that the mo

Re: Storing Output file.

2016-01-29 Thread Jonathan Harris via beginners
ation aborted at > C:\Users\Franklin_Lawerence\Desktop\perl\arrarsize.pl line 5. > > C:\Users\Franklin_Lawerence\Desktop\perl> > > > *File-Slurp installed in below Program files folder:* > > C:\Perl64\cpan\build\File-Slurp-.19-_tH9hN > > On Thu, Jan 28, 20

Re: Storing Output file.

2016-01-28 Thread Jonathan Harris via beginners
Hi, I found that this works, assuming that the module is installed. #!/usr/bin/perl use warnings; use strict; use File::Slurp qw ( :edit ); # my $file_to_edit = 'path-to-file.txt'; # my $word_to_edit = "Debug"; my $new_word = "Error"; # edit_file { s/$word_to_edit/$new_word/g } ( $file_to_edit );