Re: matching newline

2004-02-29 Thread Camilo Gonzalez
Tracy Hurley wrote: Camilo, I don't think you need to put $email in quotes to do the check, but it works if you do. Try this: if $email =~/@.*@/g || $email =~ /\n/s; Hope it helps, Tracy New to the list, so apologies if I post incorrectly. On Feb 28, 2004, at 11:50 PM, Camilo Gonzalez

Re: matching newline

2004-02-29 Thread Camilo Gonzalez
zsdc wrote: Tracy Hurley wrote: Camilo, I don't think you need to put $email in quotes to do the check, but it works if you do. Try this: if $email =~/@.*@/g || $email =~ /\n/s; It still might not be secure depanding on how $email is being used later. Is it used in a system() call? In

Re: matching newline

2004-02-29 Thread zsdc
Camilo Gonzalez wrote: zsdc wrote: Tracy Hurley wrote: Camilo, I don't think you need to put $email in quotes to do the check, but it works if you do. Try this: if $email =~/@.*@/g || $email =~ /\n/s; It still might not be secure depanding on how $email is being used later. Is it used in a

Re: subroutine definitions

2004-02-29 Thread John W. Krahn
R. Joseph Newton wrote: Andrew Gaffney wrote: sub generate_report_html([EMAIL PROTECTED]@) { my ($title, $columns, $data) = @_; $data is prototyped as an array/list, but you receive it here as a scalar. If you must use the damned prototype, it should be: sub

Re: Frequency of words

2004-02-29 Thread Vishal Vasan
Hello all, Sorry to reply so late. Here is the code that worked for me. %frequency_words = (); while(){ chomp; $frequency_words{$_}++; } @words_found = keys %frequency_words; foreach $word (@words_found){

Re: Automatically write in uppercase

2004-02-29 Thread zsdc
R. Joseph Newton wrote: John wrote: How can activate the caps lock while the user write in a perl programt (Perl/Tk) Why would you want to do that?!? John, if you want to do that because you need to have your input all in caps, then use uc: $text = uc $text; You will need to add: use

Re: CODING STYLE (was Re: Count the number of lines in a file without actually iterating through the file)

2004-02-29 Thread zsdc
WC -Sx- Jones wrote: zsdc wrote: WC -Sx- Jones wrote: Can we please leave the Perl Golf in the appropriate context or at least make a warning in/at the start of the message that the post may confuse beginners? I didn't make any warning in my last post. I wrote an explaination instead. I hope

Re: Automatically write in uppercase

2004-02-29 Thread John
That's a nice method but i would prefer to activate the CAPS-LOCK and user write in capitals in my text entry widget - Original Message - From: zsdc [EMAIL PROTECTED] To: John [EMAIL PROTECTED] Cc: Perl Beginners [EMAIL PROTECTED] Sent: Sunday, February 29, 2004 1:21 PM Subject: Re:

Re: Automatically write in uppercase

2004-02-29 Thread WilliamGunther
In a message dated 2/29/2004 7:31:49 AM Eastern Standard Time, [EMAIL PROTECTED] writes: That's a nice method but i would prefer to activate the CAPS-LOCK and user write in capitals in my text entry widget I can't think of how (or why) you'd want to do that. If you want them to type in caps,

showing all matched text string possibilities

2004-02-29 Thread WC -Sx- Jones
=pod What would the best approach to account for ALL strings matched? (In other words I want to display as complete a list as possible to determine all strings that would be matched...) =cut sub verp_mung { my $addr = $_[0]; $addr =~

Running a Perl script on windows xp

2004-02-29 Thread Katia Kermanidis
Hello everyone, To tell the truth I am not really interested in becoming a Perl programmer. I only have one question: I have a Perl script and I would like to run it on Windows xp. Could anyone tell me which Perl I should install and, as simply as possible, what I should do exactly to run the

Re: Tool Like TOAD

2004-02-29 Thread Jenda Krynicky
From: KENNETH JANUSZ [EMAIL PROTECTED] Is there a tool like TOAD that I can use with PERL on Windows XP Prof.? Thanks much, Ken Janusz, CPIM You mean Tool for Oracle Application Developers? http://www.quest.com/toad/ Well it seems it was meant to run under WinXP though I don't see how is

Re: Running a Perl script on windows xp

2004-02-29 Thread Beau E. Cox
On Sunday 29 February 2004 04:32 am, Katia Kermanidis wrote: Hello everyone, To tell the truth I am not really interested in becoming a Perl programmer. I only have one question: I have a Perl script and I would like to run it on Windows xp. Could anyone tell me which Perl I should install

Help with Radio_group

2004-02-29 Thread Mercedissa1
I have a script that processes a form input. What I want to do is this: I have form elements: -radio_group1 -radio_group2 -textfield: takes 6 digits depending on the user' selection. I want the textfield to be populated with 00 if the user select radio_group2. Any idea on how to do that

Re: Automatically write in uppercase

2004-02-29 Thread James Edward Gray II
On Feb 29, 2004, at 6:30 AM, John wrote: That's a nice method but i would prefer to activate the CAPS-LOCK and user write in capitals in my text entry widget I would prefer you didn't. ;) The keyboard takes commands from me, not the computer. If a program started monkeying with my control of

Re: Running a Perl script on windows xp

2004-02-29 Thread Joel
I would recommend downloading activeperl from http://www.activestate.com/Products/Download/Register.plex?id=ActivePerl They don't need your personal information for you to download it. Get the windows MSI package. Once you have installed it, open the command prompt (It should be in accessories)

Re: showing all matched text string possibilities

2004-02-29 Thread John W. Krahn
Wc -Sx- Jones wrote: =pod What would the best approach to account for ALL strings matched? (In other words I want to display as complete a list as possible to determine all strings that would be matched...) =cut $ podchecker ~/Wc-Sx-Jones.email *** WARNING: file does not start with =head

Re: Reading elements into hash

2004-02-29 Thread John W. Krahn
Chern Jian Leaw wrote: Hi, Hello, I have a script written below (by John Krahn and WC-Sx-Jones from this mailing list) which changes the file format from: #cat PSCS-ORIG abinabdu adanie2 agibson agoh1aiabouse akko alau alee1alee2amitb amohdali amshams anmohand

Email problem

2004-02-29 Thread Support
Hi all This may be more appropriate in another perl forum, but I'll ask any way. I have two perl scripts, 1 running in the cgi-bin with a browser and an email output and the email address to me at [EMAIL PROTECTED] and this runs fine. I have another perl script running in another folder(out side

Re: showing all matched text string possibilities

2004-02-29 Thread WC -Sx- Jones
John W. Krahn wrote: Wc -Sx- Jones wrote: =pod What would the best approach to account for ALL strings matched? (In other words I want to display as complete a list as possible to determine all strings that would be matched...) =cut $ podchecker ~/Wc-Sx-Jones.email :) I was wondering why no one

RE: subroutine definitions

2004-02-29 Thread Charles K. Clarkson
Andrew Gaffney [EMAIL PROTECTED] wrote: : code : package Skyline; : : big SNIP of other module code : : sub generate_report_html([EMAIL PROTECTED]@) { :my ($title, $columns, $data) = @_; Here begins my problems with prototypes. Let's try this sample script: sub

RE: Email problem

2004-02-29 Thread Support
Thanks for your reply Mark. Yes, I'm using print Content-type: text/html; to print the browser reply, but not in the email content. I'm not using use CGI qw(:standard) in any of the scripts. Bearing in mind the email in the first script works perfect, but in the second it does not?? Cheers

Re: subroutine definitions

2004-02-29 Thread Andrew Gaffney
Charles K. Clarkson wrote: Andrew Gaffney [EMAIL PROTECTED] wrote: : code : package Skyline; : : big SNIP of other module code : : sub generate_report_html([EMAIL PROTECTED]@) { :my ($title, $columns, $data) = @_; Here begins my problems with prototypes. Let's try this sample script: sub

Digest::MD4

2004-02-29 Thread Bruce, Clifford
I am a beginner at PERL, PERL modules, and UNIX. I installed RADIATOR on my Ultra 2 with Solaris 8. Before I can configure RADIATOR I need to install several modules (e.g. MD4, ldap, openSSL). The first module I have attempted to install is MD4. I began by finding out what the default PERL path

Any way for Perl to write RTF within email as the body of an email without attachments

2004-02-29 Thread Wagner, David --- Senior Programmer Analyst --- WGO
I have an email I am doing, but there is so much data and I am running into problems on wrapping of lines on the screen. I use sendmail and Sender, but would be open to anything that would allow me to imitate the RTF which one can write as part of Outlook. It can not be an attachment.

Re: Help with Radio_group

2004-02-29 Thread wolf blaum
On Sunday 29 February 2004 17:20, [EMAIL PROTECTED] generously enriched virtual reality by making up this one: Hi I have a script that processes a form input. What I want to do is this: I assume you are talking about a html form. I have form elements: -radio_group1 -radio_group2

Re: Digest::MD4

2004-02-29 Thread Daniel T. Staal
--As of Sunday, February 29, 2004 6:58 PM -0500, Bruce, Clifford is alleged to have said: I am a beginner at PERL, PERL modules, and UNIX. I installed RADIATOR on my Ultra 2 with Solaris 8. Before I can configure RADIATOR I need to install several modules (e.g. MD4, ldap, openSSL). The first

Re: Help with Radio_group

2004-02-29 Thread wolf blaum
On Monday 01 March 2004 02:06, wolf blaum generously enriched virtual reality by making up this one: On Sunday 29 February 2004 17:20, [EMAIL PROTECTED] generously enriched virtual reality by making up this one: Hi I have a script that processes a form input. What I want to do is this:

Re: subroutine definitions

2004-02-29 Thread R. Joseph Newton
Charles K. Clarkson wrote: Here begins my problems with prototypes. Let's try this sample script: sub generate_report_html([EMAIL PROTECTED]@); which could also be written: sub generate_report_html($$$); with much greater clarity. my $title= 'foo'; my @column_names = 1 ..

Re: Digest::MD4

2004-02-29 Thread John W. Krahn
Clifford Bruce wrote: I am a beginner at PERL, PERL modules, and UNIX. I installed RADIATOR on my Ultra 2 with Solaris 8. Before I can configure RADIATOR I need to install several modules (e.g. MD4, ldap, openSSL). The first module I have attempted to install is MD4. I began by finding out

Ternary operator question

2004-02-29 Thread Perl
I am trying to understand how this works. For example: my $n = @$a @$b ? @$a : @$b; I understand this is a conditional statement I am just not sure what is being compared with ? and :. --Paul

Re: Ternary operator question

2004-02-29 Thread Andrew Gaffney
Perl wrote: I am trying to understand how this works. For example: my $n = @$a @$b ? @$a : @$b; I understand this is a conditional statement I am just not sure what is being compared with ? and :. I believe that the above just assigns a true or false (1 or 0) to $n. The statement is the same

Re: Ternary operator question

2004-02-29 Thread John W. Krahn
Perl wrote: I am trying to understand how this works. For example: my $n = @$a @$b ? @$a : @$b; I understand this is a conditional statement I am just not sure what is being compared with ? and :. That is same as: my $n; if ( @$a @$b ) { $n = @$a; } else { $n = @$b; }

Re: Ternary operator question

2004-02-29 Thread John W. Krahn
Andrew Gaffney wrote: Perl wrote: I am trying to understand how this works. For example: my $n = @$a @$b ? @$a : @$b; I understand this is a conditional statement I am just not sure what is being compared with ? and :. I believe that the above just assigns a true or false (1 or

Re: Digest::MD4

2004-02-29 Thread zsdc
John W. Krahn wrote: Clifford Bruce wrote: I am a beginner at PERL, PERL modules, and UNIX. I installed RADIATOR on my Ultra 2 with Solaris 8. Before I can configure RADIATOR I need to install several modules (e.g. MD4, ldap, openSSL). The first module I have attempted to install is MD4. I began

Re: Any way for Perl to write RTF within email as the body of an email without attachments

2004-02-29 Thread zsdc
Wagner, David --- Senior Programmer Analyst --- WGO wrote: I have an email I am doing, but there is so much data and I am running into problems on wrapping of lines on the screen. I use sendmail and Sender, but would be open to anything that would allow me to imitate the RTF which one

Re: subroutine definitions

2004-02-29 Thread zsdc
R. Joseph Newton wrote: Charles K. Clarkson wrote: Here begins my problems with prototypes. Let's try this sample script: sub generate_report_html([EMAIL PROTECTED]@); which could also be written: sub generate_report_html($$$); with much greater clarity. This is not the same. A '$' in the

Re: Automatically write in uppercase

2004-02-29 Thread zsdc
James Edward Gray II wrote: On Feb 29, 2004, at 6:30 AM, John wrote: That's a nice method but i would prefer to activate the CAPS-LOCK and user write in capitals in my text entry widget I would prefer you didn't. ;) The keyboard takes commands from me, not the computer. If a program started

Re: subroutine definitions

2004-02-29 Thread R. Joseph Newton
zsdc wrote: R. Joseph Newton wrote: Charles K. Clarkson wrote: Here begins my problems with prototypes. Let's try this sample script: sub generate_report_html([EMAIL PROTECTED]@); which could also be written: sub generate_report_html($$$); with much greater clarity. This