Number formatting

2004-08-04 Thread Colin . Johnstone
Hi all, I am doing conversions from square metres to square feet for example. I have a regex that removes any commas or spaces in a number. I then do the conversion return an integer but then want to display the number with the commas or spaces put back in to make it easier to read. What do

RE: Reg ex help

2004-01-12 Thread Colin Johnstone
Thanks Wags, terrific. Colin "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> 13/01/2004 12:03 PM To: Colin Johnstone/Australia/Contr/[EMAIL PROTECTED], <[EMAIL PROTECTED]> cc: Subject: RE: Reg ex help

Reg ex help

2004-01-12 Thread Colin Johnstone
Gidday list, Please I need a reg ex to return everything to the left of '\WORKAREA' in this URL $url = 'Y:\default\main\aphrwebAdmin\WORKAREA\Colin' I tried $url =~ s/(.*?)[\\WORKAREA]/$1/; then we wish to remove the drive designation and the leading slash Thanking you in anticipation Coli

Re: Splitting Comma delimited list

2003-12-29 Thread Colin Johnstone
p; Integrity,Site Utilities,Single Cycle Salary Review,Transition Employees,Transactional,Well Being,When Life Changes,Workforce Diversity,Workplace Practices,Your Career __data__ "Bob Showalter" <[EMAIL PROTECTED]> 30/12/2003 02:22 PM To: Colin Johnstone/Aus

RE: Splitting Comma delimited list

2003-12-29 Thread Colin Johnstone
IL PROTECTED]> 30/12/2003 09:23 AM To: Colin Johnstone/Australia/Contr/[EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject:RE: Splitting Comma delimited list Colin Johnstone wrote: > Hi All, > > I have nothing to gain by not showing you all my

RE: Splitting Comma delimited list

2003-12-29 Thread Colin Johnstone
Transactional When Life Changes Workplace Practices "Tim Johnson" <[EMAIL PROTECTED]> 30/12/2003 08:49 AM To: Colin Johnstone/Australia/Contr/[EMAIL PROTECTED], "James Edward Gray II" <[EMAIL PROTECTED]> cc: <[EMAIL PROTECTE

Re: Splitting Comma delimited list

2003-12-29 Thread Colin Johnstone
03 08:26 AM To: Colin Johnstone/Australia/Contr/[EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject:Re: Splitting Comma delimited list On Dec 29, 2003, at 3:12 PM, Colin Johnstone wrote: > Hello everyone, > > I use the following to split a comma delimited

Splitting Comma delimited list

2003-12-29 Thread Colin Johnstone
Hello everyone, I use the following to split a comma delimited list and get varying results and I don't understand why. my count of the elements in the splitdata array returns 43 but the select list when displayed in our Content management system only has approximately 23 items. Some items are

When to USE shift or @_

2003-12-19 Thread Colin Johnstone
Gidday all, I want to pass a boolean value as a parameter to a subroutine what should I use shift or @_ and whats the difference please. e.g mySubRoutine(0); sub mySubRoutine{ my $booleanParameter = @_; return; }

DBCS Charater sort

2003-11-30 Thread Colin Johnstone
experience doing this. Any Help appreciated. Thank You Colin Johnstone Interwoven Analyst Programmer IBM Australia.

Package Help

2003-11-13 Thread Colin Johnstone
Gidday All, Im modifying this package. What it does is produce the html for our presentation templates of our content management system. I have to keep track of the number of forms on my page so I can create unique names for them, to do that I have initiated a variable FRM_CNT. One of my more

Reg ex help

2003-02-24 Thread Colin Johnstone
Gidday all, >From this string I wish to return everything to the left of the last occurence of "." if it exists. string = "3.25.23.4"; Any help appreciated Thank You Colin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Text file or database

2003-02-20 Thread Colin Johnstone
Gidday all, A colleague and I were having a discussion re pros and cons of use of textfile to store data over a database. When would you use a database in preference to storing users in a textfile? I have written a mailing list application in Perl that that has a double optin registration process

RE: File Handling

2003-01-15 Thread Colin Johnstone
John, Thank you for your help. Colin -Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 15 January 2003 11:00 PM To: [EMAIL PROTECTED] Subject: Re: File Handling Colin Johnstone wrote: > > Gidday all, Hello, > Im having trouble reading and w

File Handling

2003-01-14 Thread Colin Johnstone
Gidday all, Im having trouble reading and writing to this file, It's probably just something silly. Heres my code. I have set the permissions on the file to 775. my ($filename); $filename = "/home/bdweb8083m/johnstonefamily.com/cgi-bin/hp_data/participants.txt"; if( -e $filename ){ print "Ye

RE: re slurping a text file

2003-01-14 Thread Colin Johnstone
]; [EMAIL PROTECTED]: Subject: re slurping a text file my %var = ('FirstName'=>'John Doe', 'time' => '12:12:56', 'date' => '2002-12-12'); $line =~ s{<([^>]+)>} { exists( $va

Slurping a Text file

2003-01-14 Thread Colin Johnstone
Gidday all, I wish to slurp in a letter template in the form of a text file and substitute fields in the letter for variables that are input on my html form. I indicate in the text file where the substitution should take place by the use of a like in html. the Text file looks like this Dear ,