Re: Which way is better? (and why)

2007-02-01 Thread Ken Foskey
On Thu, 2007-02-01 at 02:44 -0500, M. Lewis wrote: > I'm trying to write an interface to check SHA1 or SHA256 checksums of a > file. > > Initially I was thinking of opening the checksum file and figuring out > based on the contents of that file, is it a SHA1 checksum or a SHA256 > checksum. > > I

Printing in preprinted invoice

2007-02-01 Thread Patricio A. Bruna
Hi, Anyone knows a easier method, that guest and try, to print an invoice in a prepinted paper, i need to fill the gaps. The size of the page is Letter. Regards

RE: Printing in preprinted invoice

2007-02-01 Thread Moon, John
-Original Message- From: Patricio A. Bruna [mailto:[EMAIL PROTECTED] Sent: Thursday, February 01, 2007 7:30 AM To: beginners@perl.org Subject: Printing in preprinted invoice Hi, Anyone knows a easier method, that guest and try, to print an invoice in a prepinted paper, i need to fill the

Re: Printing in preprinted invoice

2007-02-01 Thread Tom Phoenix
On 2/1/07, Patricio A. Bruna <[EMAIL PROTECTED]> wrote: Anyone knows a easier method, that guest and try, to print an invoice in a prepinted paper, i need to fill the gaps. The size of the page is Letter. So you have to make sure that all the ink ends up only in the right places? I recommend t

SIGCHLD question

2007-02-01 Thread Travis Thornhill
I would like to know what the difference is between these two methods of handling SIGCHLD. $SIG{CHLD} = sub {}; $SIG{CHLD} = 'IGNORE'; Here's a larger context of what I'm trying to do: ## # Our timeout has been reached, or there was a fatal service error. ## sub kill_run {

regexp... weird results

2007-02-01 Thread oryann9
Hello Perl list, I need to grab from an intel machine all lines with :5101 from netstat -a. If I dont group the regexp using parens then it prints all the needed lines. If I group the regexp using parens then it does not print all the needed lines. Any help and an explanation...I am c

Re: regexp... weird results

2007-02-01 Thread oryann9
oryann9 <[EMAIL PROTECTED]> wrote:Hello Perl list, I need to grab from an intel machine all lines with :5101 from netstat -a. If I dont group the regexp using parens then it prints all the needed lines. If I group the regexp using parens then it does not print all the needed lines. Any help a

Re: regexp... weird results

2007-02-01 Thread Jay Savage
On 2/1/07, oryann9 <[EMAIL PROTECTED]> wrote: oryann9 <[EMAIL PROTECTED]> wrote:Hello Perl list, [snip] I was able to figure it out. The solution was /s. my $regexp = qr/.*\x3a5101.*/s; However, when I put multiple port numbers in the regexp it does NOT work. I want to store the

Re: while loop problem

2007-02-01 Thread Brad Cahoon
Done it, thank you all for your help. My next problem is regexp, you my be hearing from me :) Regards Brad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

script woes

2007-02-01 Thread Brad Cahoon
Hi again, I have lots of files ( see my first post to this group :) ) they all have two lines simular to: Ref.: 005803/11-SY (T45)Total Amount 685.00 Lead: ARDA/DILAN/MISS Total Paid 685.00 I want to rename the files with "L

Re: script woes

2007-02-01 Thread Tom Phoenix
On 2/1/07, Brad Cahoon <[EMAIL PROTECTED]> wrote: Use of uninitialized value in concatenation (.) or string at rename.pl line 15, line 70. That "uninitialized value" is undef -- meaning you used some variable before you put a value into it. open DATA, "$arg"; You should really che

Re: script woes

2007-02-01 Thread Brad Cahoon
Hi Tom, On 2/2/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: > open DATA, "$arg"; You should really check the return value from open, in case it didn't work. And what are those quote marks doing? LOL, thats me trying to see if that was the problem, it didn't make a difference this time

Re: SIGCHLD question

2007-02-01 Thread Tom Phoenix
On 2/1/07, Travis Thornhill <[EMAIL PROTECTED]> wrote: I would like to know what the difference is between these two methods of handling SIGCHLD. $SIG{CHLD} = sub {}; $SIG{CHLD} = 'IGNORE'; Basically, the first tells perl to do nothing in response to the signal, not even reaping the zombi

Re: script woes

2007-02-01 Thread John W. Krahn
Brad Cahoon wrote: > Hi again, Hello, > I have lots of files ( see my first post to this group :) ) > they all have two lines simular to: > > Ref.: 005803/11-SY (T45)Total Amount > 685.00 > Lead: ARDA/DILAN/MISS Total Paid >

Re: script woes

2007-02-01 Thread Mumia W.
On 02/01/2007 07:39 PM, Brad Cahoon wrote: Hi again, I have lots of files ( see my first post to this group :) ) they all have two lines simular to: Ref.: 005803/11-SY (T45)Total Amount "Ref.:" has a space after it here. 685.00 Lead: ARDA/DILAN/MISS

Extract user from email address

2007-02-01 Thread Mathew Snyder
I have a script which extracts email addresses from a web page, pushes them into an array and then prints them out before asking if I wish to perform the work on them that is required. What I would like to do is compare the username portion of the email address to a list of usernames in a hash to