RE: How do I increment a alphanumeric value?

2004-03-12 Thread Meneses, Alden
enior Programmer Analyst --- WGO [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 12:24 PM To: Meneses, Alden; [EMAIL PROTECTED] Subject: RE: How do I increment a alphanumeric value? Meneses, Alden wrote: > I must be doing something wrong with this script > > my $pcname = '

RE: How do I increment a alphanumeric value?

2004-03-12 Thread Charles K. Clarkson
Wagner, David --- Senior Programmer Analyst --- WGO <[EMAIL PROTECTED]> wrote: : : Meneses, Alden wrote: : > I must be doing something wrong with this script : > : > my $pcname = 'ACME0001'; : > while ( $pcname < 5 ) { : I believe it has to do the arithmetic < which is making : ACME000

RE: How do I increment a alphanumeric value?

2004-03-12 Thread Wagner, David --- Senior Programmer Analyst --- WGO
4 > > -Original Message- > From: Wagner, David --- Senior Programmer Analyst --- WGO > [mailto:[EMAIL PROTECTED] > Sent: Friday, March 12, 2004 11:50 AM > To: James Edward Gray II; Meneses, Alden > Cc: [EMAIL PROTECTED] > Subject: RE: How do I increment a alphanume

RE: How do I increment a alphanumeric value?

2004-03-12 Thread Meneses, Alden
mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 11:50 AM To: James Edward Gray II; Meneses, Alden Cc: [EMAIL PROTECTED] Subject: RE: How do I increment a alphanumeric value? James Edward Gray II wrote: > On Mar 12, 2004, at 1:39 PM, Meneses, Alden wrote: > >> Suppose I have machines

RE: How do I increment a alphanumeric value?

2004-03-12 Thread Wagner, David --- Senior Programmer Analyst --- WGO
James Edward Gray II wrote: > On Mar 12, 2004, at 1:39 PM, Meneses, Alden wrote: > >> Suppose I have machines that are ACME >> >> I want to go from ACME0001 to ACME > > How's this? If you have it in a variable then you only need ++ to get to the next item: my $MyMachines

Re: How do I increment a alphanumeric value?

2004-03-12 Thread James Edward Gray II
On Mar 12, 2004, at 1:39 PM, Meneses, Alden wrote: Suppose I have machines that are ACME I want to go from ACME0001 to ACME How's this? foreach (1..) { printf "ACME%4d\n", $_; } James -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

How do I increment a alphanumeric value?

2004-03-12 Thread Meneses, Alden
Suppose I have machines that are ACME I want to go from ACME0001 to ACME -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Alphanumeric

2003-02-27 Thread zentara
On Wed, 26 Feb 2003 16:51:49 -0500, [EMAIL PROTECTED] (Donna Runyon) wrote: >Is there a perl function to check if a value is alphabetic or numeric? #!/usr/bin/perl print is_numeric(10),"\n"; print is_numeric('3rd'),"\n"; sub is_numeric { no warnings; use warnings FATAL => 'numeric'; return defi

Re: Alphanumeric

2003-02-26 Thread John W. Krahn
Donna Runyon wrote: > > Is there a perl function to check if a value is alphabetic or numeric? You could use the POSIX character classes to determine this. perldoc perlre > The problem is I have listing which contain numbers such as "3rd floor". > These are being loaded into a sql table using

RE: Alphanumeric

2003-02-26 Thread Paul Kraus
if(/^\d+/) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:52 PM To: [EMAIL PROTECTED] Subject: Alphanumeric Is there a perl function to check if a value is alphabetic or numeric? The problem is I have listing which contain

Alphanumeric

2003-02-26 Thread donna . runyon
Is there a perl function to check if a value is alphabetic or numeric? The problem is I have listing which contain numbers such as "3rd floor". These are being loaded into a sql table using soundex('%s'). Soundex results to null if the entry starts with a number. Donna S. Runyon (mailto:[EMAIL

RE: Extract alphanumeric characters not working . . .

2002-09-26 Thread Tim Booher
me that I am not dealing with a text file, even though I can open it in notepad. Any thoughts? tim -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 10:33 AM To: Tim Booher Cc: [EMAIL PROTECTED] Subject: Re: Extract al

Re: Extract alphanumeric characters not working . . .

2002-09-26 Thread Jeff 'japhy' Pinyan
On Sep 26, Tim Booher said: >#/usr/bin/perl -w ># tbb | 26 Sept 2002 ># removes non alphanumeric characters from file > >open(OUT, ">" . $ARGV[0] . "tmp"); > >while(<>) >{ > print $_; This prints the ORIGINAL data to your screen... &g

Extract alphanumeric characters not working . . .

2002-09-26 Thread Tim Booher
I appreciate your help, but I can’t get a solution to work. Japhy, thanks for the insight into the tr command, but I think the problem is more fundamental than a simple text file. When I run the following script:   #/usr/bin/perl -w # tbb | 26 Sept 2002 # removes non alphanumeric

need help ... text boxes/form .... alphanumeric input only

2002-09-04 Thread Luinrandir Hernsen
Hallo I had to replace the pull down menues to text boxes on my order form. This means I need to filter out unwanted text. I need to make it alphanumeric only.for security reasons. I have red/bold the two lines I changed last time to eliminate all "0" "zero" orders. if y