Fwd: Re: Bash vs Perl

2023-07-14 Thread Tim Lewis via beginners
On Jul 14, 2023, 11:33 AM, at 11:33 AM, Tim Lewis wrote: >Hi William, >I use crontab on my Ubuntu server to automatically run Perl scripts. >Will that work for you? >Tim >William Torrez Corea wrote: >Can I mix bash with perl in a program? >I want to create a program in Per

RE: Pattern matching to hash

2012-12-28 Thread Tim Lewis
Thank you Chris. Using strict and warnings should have been the first thing that I did. Thank you also for the code correction. -Original Message- From: Chris Charley [mailto:char...@pulsenet.com] Sent: Friday, December 28, 2012 5:52 PM To: beginners@perl.org Subject: Re: Pattern match

RE: Pattern matching to hash

2012-12-28 Thread Tim Lewis
Thank you Tim. The lack of strict and warnings should have been the first thing that I put in the code. Thank you for the correction and for the help in the loop. From: timothy adigun [mailto:2teezp...@gmail.com] Sent: Friday, December 28, 2012 4:11 PM To: twle...@reagan.com Cc: beginners@pe

Perl difference in script name

2012-08-29 Thread Tim Lewis
I am using the name of my Perl script to call in an associated INI file with the same name. Someone ran across something today that I have not seen before. The server (Win 2003) on which the script runs has .pl files to be set with the Perl.exe as the default associated program. When I run a scr

RE: Perl Code

2012-08-29 Thread Tim Lewis
At least one Scooby snack? -Original Message- From: Jim Gibson [mailto:jimsgib...@gmail.com] Sent: Wednesday, August 29, 2012 12:59 PM To: Perl Beginners Subject: Re: Perl Code On Aug 29, 2012, at 9:46 AM, Ashwin Rao T wrote: > 1)Check if IP address is in the range 172.125.1.0 and 172.

RE: Add line feed to line

2011-08-03 Thread Tim Lewis
. -Original Message- From: Shlomi Fish [mailto:shlo...@shlomifish.org] Sent: Friday, July 29, 2011 7:13 AM To: Tim Lewis Cc: beginners@perl.org Subject: Re: Add line feed to line On Wed, 27 Jul 2011 15:19:56 -0400 Tim Lewis wrote: > I am attempting to add a line feed to the end of each l

Re: Add line feed to line

2011-07-28 Thread Tim Lewis
# concatentate any separator u want, here I > used "," > # in red colour > print $arr; > > Thanks > > On Wed, Jul 27, 2011 at 9:03 PM, Tim Lewis wrote: > > > I found an answer that I thought I would shar

Re: Add line feed to line

2011-07-27 Thread Tim Lewis
rks great now. ---- Tim Lewis wrote: > I am attempting to add a line feed to the end of each line. When I do this, a > carriage return is also added. My code lines are: > > $currentLine = $currentLine . "\x{0A}"; > $finalOutput = $finalOutput . $currentLine; > >

Add line feed to line

2011-07-27 Thread Tim Lewis
I am attempting to add a line feed to the end of each line. When I do this, a carriage return is also added. My code lines are: $currentLine = $currentLine . "\x{0A}"; $finalOutput = $finalOutput . $currentLine; There has to be a way to do this. Also, is there a better way to concatentate? Th

RE: Convert spreadsheet to jpeg

2011-06-21 Thread Tim Lewis
Here is some VBA code to get you started. It will run in an Excel spreadsheet. It opens another spreadsheet, copies the active cell data, pastes that to Paint, and saves the file as a jpg. I wrote it "on the fly", but it works. For production use, I would change it so that one sheet in the c

RE: Message queue

2011-05-26 Thread Tim Lewis
Shawn, are you looking for something to send messages from Perl scripts instead of an SMTP setup? Tim -Original Message- From: shawn wilson [mailto:ag4ve...@gmail.com] Sent: Thursday, May 26, 2011 4:44 AM To: beginners@perl.org Subject: Message queue I'm trying to figure out what the dif

RE: Basic question on arrays $ vs @

2011-05-25 Thread Tim Lewis
Thanks Uri. That makes perfect sense. -Original Message- From: Uri Guttman [mailto:u...@stemsystems.com] Sent: Wednesday, May 25, 2011 1:37 PM To: Tim Lewis Cc: beginners@perl.org Subject: Re: Basic question on arrays $ vs @ >>>>> "TL" == Tim Lewis writes:

Basic question on arrays $ vs @

2011-05-25 Thread Tim Lewis
This is a very basic question on arrays and referring to the elements. In referring to the elements, I know that it is correct practice to use $ instead of @, but I know that Perl allows the @. My simple question is what is the difference. I have looked at different Perl tutorials, but have not

RE: :SCP is saving a file name with a wild card

2011-04-28 Thread Tim Lewis
Dave, in looking at the documentation for Net::SCP, it does not appear that it can accept a wildcard. It looks like it has to be the exact name of the file that you wish to retrieve. It might be creating a file with nothing in it. When it retrieves that file, is it really the file, or just a zer

Naming subroutines WAS: special method name start with "_"

2011-04-28 Thread Tim Lewis
What is considered to be the proper way of naming internal subroutines? Example: my_special_subroutine or mySpecialSubroutine -Original Message- From: Uri Guttman [mailto:u...@stemsystems.com] Sent: Thursday, April 28, 2011 12:50 AM To: Shawn H Corey Cc: beginners@perl.org Subject: Re: s

RE: How does this work?

2011-04-27 Thread Tim Lewis
If needed, there is a good complete table of the ASCII values at http://www.asciitable.com/ Tim -Original Message- From: Ishwor Gurung [mailto:ishwor.gur...@gmail.com] Sent: Wednesday, April 27, 2011 5:46 AM To: Perl Beginners Subject: Re: How does this work? Hi Owen. G'day. On 27 Apri

RE: sample distribution

2011-04-20 Thread Tim Lewis
: Wednesday, April 20, 2011 3:58 PM To: beginners@perl.org Subject: Re: sample distribution On Apr 20, 12:39 pm, twle...@sc.rr.com ("Tim Lewis") wrote: > Suppose that you want to sell the cows.  You have two buyers, and each one > is paying you $10,000 for 10 cows.  You want to di

RE: sample distribution

2011-04-20 Thread Tim Lewis
Sorry about the typo. HOW would you split the cows up? -Original Message- From: Tim Lewis [mailto:twle...@sc.rr.com] Sent: Wednesday, April 20, 2011 3:40 PM To: beginners@perl.org Subject: RE: sample distribution Suppose that you want to sell the cows. You have two buyers, and each

RE: sample distribution

2011-04-20 Thread Tim Lewis
Suppose that you want to sell the cows. You have two buyers, and each one is paying you $10,000 for 10 cows. You want to divide the cows as fairly as possible so that each buyer gets the same value. Who would you split the cows up? Does that help any? -Original Message- From: ai nguy