Re: Storing Output file.

2016-02-02 Thread Jonathan Harris via beginners
ALL VETERANS: >> >> >> >> >> https://www.oathkeepers.org/us-senate-passes-bill-approving-mandatory-vaccinations-for-veterans/ >> >> >> >> >> >> >> >> >> >> On Fri, Jan 29, 2016 at 9:24 PM, Frank Vino <vinofra...@gmail.c

Re: Storing Output file.

2016-01-29 Thread Jonathan Harris via beginners
is the immediate future. Thanks, Jonathan On Fri, Jan 29, 2016 at 10:45 AM, Shlomi Fish <shlo...@shlomifish.org> wrote: > Hi Jonathan, > > On Thu, 28 Jan 2016 17:57:19 +0000 > Jonathan Harris via beginners <beginners@perl.org> wrote: > > > Hi, >

Re: Storing Output file.

2016-01-29 Thread Jonathan Harris via beginners
lation 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, 2016 at 11

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 );

Re: Which Is Good?

2015-03-12 Thread Jonathan Harris
I use Strawberry Perl to manage troublesome processes on Windows 2008 Server. Have never had an issue! It's stable and simple to install. I was advised to only install the 32bit version, even though it's a 64bit OS. That advise came from a live forum of regular advanced Strawberry Users, so I took

Re: Win32 - Killing Processes

2013-04-10 Thread Jonathan Harris
On Tue, Apr 9, 2013 at 11:15 PM, Mike Flannigan mikef...@att.net wrote: On 4/9/2013 6:10 AM, Jonathan Harris wrote: Hi All I am using Strawberry Perl (latest release) on a Windows 2003 SP2 server I am trying to use a script to look at running processes, look for a specific process

Re: Win32 - Killing Processes - update possible solution

2013-04-10 Thread Jonathan Harris
On Wed, Apr 10, 2013 at 12:02 PM, Jenda Krynicky je...@krynicky.cz wrote: From: Jonathan Harris jtnhar...@googlemail.com As it seems that Win32::Process::KillProcess is having difficulties killing a hanging process, I thought that it would probably make sense to ask the system to do

Re: Win32 - Killing Processes - update possible solution

2013-04-09 Thread Jonathan Harris
On Mon, Apr 8, 2013 at 4:41 PM, Jonathan Harris jtnhar...@googlemail.comwrote: Hi All I am using Strawberry Perl (latest release) on a Windows 2003 SP2 server I am trying to use a script to look at running processes, look for a specific process, and kill that process if it is alive for more

Re: Win32 - Killing Processes - update possible solution

2013-04-09 Thread Jonathan Harris
On Tue, Apr 9, 2013 at 5:42 PM, Jonathan Harris jtnhar...@googlemail.comwrote: On Mon, Apr 8, 2013 at 4:41 PM, Jonathan Harris jtnhar...@googlemail.comwrote: Hi All I am using Strawberry Perl (latest release) on a Windows 2003 SP2 server I am trying to use a script to look at running

re: Win32 - Killing Processes

2013-04-08 Thread Jonathan Harris
Hi All I am using Strawberry Perl (latest release) on a Windows 2003 SP2 server I am trying to use a script to look at running processes, look for a specific process, and kill that process if it is alive for more than 4 minutes as this would mean that the process has hung When testing killing

Re: File Size Script Help - Working Version

2012-01-02 Thread Jonathan Harris
On Sat, Dec 31, 2011 at 4:29 AM, John W. Krahn jwkr...@shaw.ca wrote: Igor Dovgiy wrote: Great work, Jonathan! Notice how simple your script has become - and that's a good sign as well in Perl. :) We can make it even simpler, however. As you probably know, Perl has two fundamental types of

Re: File Size Script Help - Working Version

2011-12-30 Thread Jonathan Harris
...@shaw.ca Jonathan Harris wrote: Hi John Thanks for your 2 cents I hadn't considered that the module wouldn't be portable That is not what I was implying. I was saying that when you add new files to a directory that you are traversing you _may_ get irregular results

Re: File Size Script Help - Working Version

2011-12-30 Thread Jonathan Harris
On Fri, Dec 30, 2011 at 7:11 PM, Brandon McCaig bamcc...@gmail.com wrote: On Thu, Dec 29, 2011 at 03:43:19PM +, Jonathan Harris wrote: Hi All Hello Jonathan: (Disclaimer: I stayed up all night playing Skyrim and am running on about 4.5 hours of sleep.. ^_^) I think most things have

Re: File Size Script Help - Working Version

2011-12-29 Thread Jonathan Harris
On Thu, Dec 29, 2011 at 5:08 PM, Igor Dovgiy ivd.pri...@gmail.com wrote: Hi Jonathan, Let's review your script a bit, shall we? ) It's definitely good for a starter, but still has some rough places. #!/usr/bin/perl # md5-test.plx use warnings; use strict; use File::Find; use

re: File Size Script Help - Working Version

2011-12-29 Thread Jonathan Harris
! sub cleanup { my @filelist = readdir($totalin); foreach my $oldname (@filelist) { next if -d $oldname; my $newname = $oldname; $newname =~ s/\ //; rename $oldname, $newname; } } # End # Jonathan Harris Dec 19 (10 days ago) to beginners, me Hi Perl Pros This is my first call for help I

Re: File Size Script Help - Working Version

2011-12-29 Thread Jonathan Harris
On Thu, Dec 29, 2011 at 6:39 PM, John W. Krahn jwkr...@shaw.ca wrote: Jonathan Harris wrote: Hi Igor Many thanks for your response I have started reviewing the things you said There are some silly mistakes in there - eg not using closedir It's a good lesson in script vigilance I found

Re: File Size Script Help - Working Version

2011-12-29 Thread Jonathan Harris
On Fri, Dec 30, 2011 at 12:33 AM, Jonathan Harris jtnhar...@googlemail.comwrote: On Thu, Dec 29, 2011 at 6:39 PM, John W. Krahn jwkr...@shaw.ca wrote: Jonathan Harris wrote: Hi Igor Many thanks for your response I have started reviewing the things you said There are some silly

re: File Size Script Help

2011-12-19 Thread Jonathan Harris
Hi Perl Pros This is my first call for help I am a totally new, self teaching, Perl hopeful If my approach to this script is simply wrong, please let me know as it will help my learning! The script aims to: 1) Read in a directory either from the command line, or from a default path 2) Produce

Re: File Size Script Help

2011-12-19 Thread Jonathan Harris
On Mon, Dec 19, 2011 at 8:08 PM, Jim Gibson jimsgib...@gmail.com wrote: On 12/19/11 Mon Dec 19, 2011 11:32 AM, Jonathan Harris jtnhar...@googlemail.com scribbled: Hi Perl Pros This is my first call for help I am a totally new, self teaching, Perl hopeful If my approach

Re: File Size Script Help

2011-12-19 Thread Jonathan Harris
On Mon, Dec 19, 2011 at 8:09 PM, Shlomi Fish shlo...@shlomifish.org wrote: Hi Jonathan, some comments on your code - both positive and negative. On Mon, 19 Dec 2011 19:32:10 + Jonathan Harris jtnhar...@googlemail.com wrote: Hi Perl Pros This is my first call for help I am

Re: practical perl guides

2011-05-27 Thread Jonathan Harris
On Fri, May 27, 2011 at 1:00 PM, Sayth Renshaw flebber.c...@gmail.comwrote: On Fri, May 27, 2011 at 9:12 PM, Leo Lapworth l...@cuckoo.org wrote: Hi, On 27 May 2011 10:26, Shlomi Fish shlo...@iglu.org.il wrote: On Friday 27 May 2011 09:35:32 Sayth Renshaw wrote: Which Perl Should I use