Receve and forward email

2004-10-10 Thread marcos . rebelo
Hi all This is my first question. One part of my job is to read one e-mail from Pop3 and do a forward of that e-mail with SMTP to +- 1000 users, just changing the from and the to. There is something that can eseally do this? How to do this? Probably there is some modules that can do this work e

RE: How to reinvent grep with perl? (OT: Cygwin grep)

2004-10-10 Thread Bakken, Luke
> > Voila. That's most likely your problem - a mismatch between > line endings > > and Cygwin mount point type. > > And in case you hadn't seen them before... there are at least a few > sets of unix tools for dos/windows. Cygwin maybe the best known but > I've used Uwin myself for sometime and

Can do in 1 while loop?

2004-10-10 Thread loan tran
Hello Perl Gurus, I wrote a script to search for log suspends and bloking processes in a text file and send me email if it find either of them. My codes below work but it's not efficent. As you can see I open the file and go to while loop twice. Can someone suggest a better way? Thanks. (attached

Re: How to reinvent grep with perl? (OT: Cygwin grep)

2004-10-10 Thread Harry Putnam
"Bakken, Luke" <[EMAIL PROTECTED]> writes: > Voila. That's most likely your problem - a mismatch between line endings > and Cygwin mount point type. And in case you hadn't seen them before... there are at least a few sets of unix tools for dos/windows. Cygwin maybe the best known but I've used U

Re: Map out a directory heirarchy

2004-10-10 Thread Harry Putnam
Harry wrote: >> This new coding although easier to look at and probably more >> efficient, isn't really any faster or at least not appreciably. It >> still goes to each and every numbered file. John replied: > In most file systems the file names are not stored in any particular > order so in orde

Re: How to add comma for thousands seperators for Currency types?

2004-10-10 Thread Chris Devers
On Sun, 10 Oct 2004, Siegfried Heintze wrote: > So what is the business/accounting convention for displaying currency > values in the US? I believe 100, 23432.32 and -53.23 are display as > > $ 100.00 > > $23,432.32 > > $ (53.23) > > I'm not sure if the $ goes outside or inside the pa

How to add comma for thousands seperators for Currency types?

2004-10-10 Thread Siegfried Heintze
I'm reading some currency values from a database and I need to display them in a vertical column using an HTML table. These values need a leading "$". They also need a comma for the thousands separator. So what is the business/accounting convention for displaying currency values in the US? I believ

Re: Variable scope in wanted function

2004-10-10 Thread Gunnar Hjalmarsson
Ron Goral wrote: I am having some difficulty with a module that is using File::Find. The method is below. The idea is to enter this method feeding it a file name and beginning directory and then looking for all occasions of $file_name and push those addresses into @a_files. This works fine until I

Re: Variable name substitution (probably a question on references)

2004-10-10 Thread Gunnar Hjalmarsson
Peter Rabbitson wrote: Since you 1) are not very convincing in explaining why it would be necessary to use soft references, and 2) argue against enabling strictures, and with that make Perl help you get your code right, you'll find that few people here are inclined to help you. (You can always read

Re: Variable name substitution (probably a question on references)

2004-10-10 Thread Peter Rabbitson
> Since you > > 1) are not very convincing in explaining why it would be necessary to > use soft references, and > > 2) argue against enabling strictures, and with that make Perl help you > get your code right, > > you'll find that few people here are inclined to help you. > > (You can always r

Re: Variable name substitution (probably a question on references)

2004-10-10 Thread Peter Rabbitson
> It would still IMHO be much better to do something like: > > %cards = ( > 4 => {name => 'Visa'}, > 5 => {name => 'MasterCard'}, > 6 => {name => 'Discover'}, > 3 => {name => 'AmEx'}, > ); > > foreach my $cardid (keys %cards) { > foreach my $property (@props) { > $

Variable scope in wanted function

2004-10-10 Thread Ron Goral
Greetings All - I am having some difficulty with a module that is using File::Find. The method is below. The idea is to enter this method feeding it a file name and beginning directory and then looking for all occasions of $file_name and push those addresses into @a_files. This works fine until

Wanted: Help understanding files, file handles and typeglobs

2004-10-10 Thread Siegfried Heintze
I'm looking at the camel book again and feeling confused. This seems to happen whenever I look at the camel book. The camel book (3rd edition) page 78 says: "Perl uses an special type called a typeglob to hold an entire symbol table entry." A. OK, if Larry says so. I don't understand w

Re: Variable name substitution (probably a question on references)

2004-10-10 Thread Jenda Krynicky
From: Peter Rabbitson <[EMAIL PROTECTED]> > For example transaction fee, fee assessment, discount rate for > all visa, master, discover, amex. Say we name the Input types > accordingly: > > 6_pct - discover discount rate > 6_tfee - discover transaction fee > 6_fa - discover fee assessment > 5_pct

IDE for web pages produces by Perl/MySql

2004-10-10 Thread Mike K
G'day... I'm wanting to use Perl with MySQL to produce web pages, and then process the results. Are there any IDEs (like PageMill, Dreamweaver, etc) that understand Perl or can write templates that Perl can understand using a particular package? All help appreciated. Thanks Mike (Please reply-

Re: Variable name substitution (probably a question on references)

2004-10-10 Thread Gunnar Hjalmarsson
[ Please type your reply below the quoted part of the message you are replying to. Please only quote what's needed to give context. ] Peter Rabbitson wrote: However for aesthetical reasons I wanted to know how to reference a variable, nevertheless in this case it is completely justified. I disagree

Re: Variable name substitution (probably a question on references)

2004-10-10 Thread Peter Rabbitson
Ok, I guess I need to bring more context to the stage. The script itself is a credit card batch parser, which guesses the card type by the first digit, and proceeds by calculating totals, transaction counts, transaction fees, and bunch of other relevant things. So ebverything in the script revolves

I'm confused: where are the commas for map and sort

2004-10-10 Thread Siegfried Heintze
The map and the sort statements are strange. Why don't they require a comma between the first and second arguments? Thanks, Siegfried -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]