Re: Creating a string with quotes and delimiters from an Array

2002-02-27 Thread Angus Laycock
I'll try this in the morning. Thanks Gus - Original Message - From: Timothy Johnson <[EMAIL PROTECTED]> To: Timothy Johnson <[EMAIL PROTECTED]>; 'Angus Laycock' <[EMAIL PROTECTED]>; Tanton Gibbs <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent:

Re: Creating a string with quotes and delimiters from an Array

2002-02-27 Thread Angus Laycock
ut. I thought I would try with the option of not quoting numbers. It is a total headblower and I don't have much time. Gus - Original Message - From: Michael Fowler <[EMAIL PROTECTED]> To: Angus Laycock <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday,

Re: Creating a string with quotes and delimiters from an Array

2002-02-27 Thread Angus Laycock
What about on negative numbers like -1? They come up with quotes, any ideas? Thanks Gus - Original Message - From: Tanton Gibbs <[EMAIL PROTECTED]> To: Angus Laycock <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002 10:53 PM Subject: Re: Crea

Re: Creating a string with quotes and delimiters from an Array

2002-02-27 Thread Angus Laycock
I know I now have the result but how does it do it? $string .= /\D/ ? "'$_'," : "$_,"; If you have the time. Thanks again Gus - Original Message - From: Tanton Gibbs <[EMAIL PROTECTED]> To: Angus Laycock <[EMAIL PROTECTED]>; <[EMAIL PROT

Re: Creating a string with quotes and delimiters from an Array

2002-02-27 Thread Angus Laycock
Tanton, Cheers. I stuck a chop in at the end and got the results. 'alf','bert','charlie',4 Thanks to you both Cheers again Gus - Original Message - From: Tanton Gibbs <[EMAIL PROTECTED]> To: Angus Laycock <[EMAIL PROTECTED]>; <[EMAIL PROT

Re: Creating a string with quotes and delimiters from an Array

2002-02-27 Thread Angus Laycock
rings. Thanks Gus - Original Message - From: Timothy Johnson <[EMAIL PROTECTED]> To: 'Angus Laycock' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002 10:24 PM Subject: RE: Creating a string with quotes and delimiters from an Array

Creating a string with quotes and delimiters from an Array

2002-02-27 Thread Angus Laycock
Hi, I have an array > @array = qw(alf bert charlie 4) and I want a string that contains this value < 'alf','bert','charlie','4' > with the single quotes and commas. I know I can do this $string = join ( ',' , @array); which gives me this > < one|two|three|four> but how do I get the si

STDOUT & STDERR

2002-02-16 Thread Angus Laycock
Hi, I want to print messages from a script to either STDOUT or STDERR depending on a value of a variable. I want to control where I send the print statements to. Can I do something like this or are there other ways to control the target I send my message to. I'm hoping there are lots of other

Sybase & Perl DBI

2002-02-12 Thread Angus Laycock
Hi, I have written a script the handles calls to a Sybase Database. The only problem I have is handling the "Return Code" from Stored Procedures. I have gone through the PERL DBI book but the only reference I can find in the Appendix(Page 326), it is to do with syb_result_type. I have used

Getopt::Long problem (Allegedly)

2002-01-30 Thread Angus Laycock
Hi, I wrote this today on UNIX . When I tested the script, calling it with all the options (f s D P U S e q ) the "-s" option would not return the value from the command line. All the other variables got populated. I then change the "s:s" to "f:s" and that worked. I am trying to replace some s

Re: Perl path for windows 98

2002-01-29 Thread Angus Laycock
lt;[EMAIL PROTECTED]> To: 'Angus Laycock' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 29, 2002 10:24 PM Subject: RE: Perl path for windows 98 > > When you say that you "downloaded PERL", what distribution did you download? > For Win32 pla

Perl path for windows 98

2002-01-29 Thread Angus Laycock
Hi, I have just downloaded PERL and set it up on my machine at home. Is there a path (#!/whatever ) I can put at the top of my script instead of typing "perl myscript.pl" to execute the script in Windows 98. Thanks in Advance Gus