Re: Storing Output file.

2016-01-29 Thread Frank Vino
Thanks a lot Jonathan, i will set the env properly then i will try. -Frank On Fri, Jan 29, 2016 at 3:36 PM, Jonathan Harris wrote: > Hi Frank, > Please would you remember to Reply All to the list as well? > > It just seems that the path is not included in @INC > You can check on the command li

Re: Storing Output file.

2016-01-29 Thread Frank Larry
Hi Team, I tried it was working. -Franky On Fri, Jan 29, 2016 at 8:21 AM, Frank Larry wrote: > Thank you so much for the solution you people provided. :) > > Warm Regards, > -Franky > > On Thu, Jan 28, 2016 at 8:49 PM, Malisetti Ram Murthy < > malisettirammur...@gmail.com> wrote: > >> Hi Fran

Re: Storing Output file.

2016-01-29 Thread Jonathan Harris via beginners
Hi Shlomi, Thanks for that pointer. I read your linked pages and it doesn't seem that there is yet a solution as simple as the 'edit_file' method. Shame as it was so handy, but the arguments against it are quite compelling. @Frank - looks like the original scripting with printing to file handles

Re: unexpected escaping

2016-01-29 Thread Jorge Almeida
On Fri, Jan 29, 2016 at 2:48 AM, Charles DeRykus wrote: > On Fri, Jan 29, 2016 at 12:39 AM, Jorge Almeida wrote: >> Can someone help me to understand this? >> >> #!/usr/bin/perl >> use strict; >> use warnings; >> my $s='\\n'; >> print $s; >> >> >> Output: >> \n >> >> Expected output: >> \\n >> >>

Re: unexpected escaping

2016-01-29 Thread Charles DeRykus
On Fri, Jan 29, 2016 at 12:39 AM, Jorge Almeida wrote: > Can someone help me to understand this? > > #!/usr/bin/perl > use strict; > use warnings; > my $s='\\n'; > print $s; > > > Output: > \n > > Expected output: > \\n > > > Jorge Almeida > From: perldoc perlop q/STRING/ 'STRING'

Re: Storing Output file.

2016-01-29 Thread Shlomi Fish
Hi Jonathan, On Thu, 28 Jan 2016 17:57:19 + Jonathan Harris via beginners wrote: > Hi, > I found that this works, assuming that the module is installed. > > #!/usr/bin/perl > use warnings; > use strict; > use File::Slurp qw ( :edit ); using File::Slurp is no longer recommended: http://blo

Re: Storing Output file.

2016-01-29 Thread Shlomi Fish
On Thu, 28 Jan 2016 07:41:15 -0800 Jim Gibson wrote: > > On Jan 28, 2016, at 1:37 AM, Frank Larry wrote: > > > > Hi Team, > > > > could you please let me? i have a file which contains "Debug", i would > > like to replace debug to "Error", when i ran the below program the out > > showing Error

Re: Storing Output file.

2016-01-29 Thread Jonathan Harris via beginners
Hi Frank, Please would you remember to Reply All to the list as well? It just seems that the path is not included in @INC You can check on the command line: perl -e "print qq(@INC)" I can't tell how you installed Perl and cpan but that's the result! Anyways, it's easily fixed. At the start of

unexpected escaping

2016-01-29 Thread Jorge Almeida
Can someone help me to understand this? #!/usr/bin/perl use strict; use warnings; my $s='\\n'; print $s; Output: \n Expected output: \\n TIA Jorge Almeida -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org