Re: how to pass a string variable via URL redirection

2004-08-21 Thread Gunnar Hjalmarsson
[ Please do not top-post! ] Xiangli Zhang wrote: Gunnar Hjalmarsson wrote: Xiangli Zhang wrote: I am trying to redirect from cgi1(with one string variable say $str with value from its calling parent html form) to cgi2, I know I can use redirect function of CGI model to implement redirection. But i

Fwd: Re: how to pass a string variable via URL redirection

2004-08-21 Thread Xiangli Zhang
Anyone know example how to use "require" function passing string variable? thanks, Note: forwarded message attached. = Xiangli Zhang (Justin) 306-310 Decaire Street, Coquitlam BC, Canada, V3K 6X1 phone: 604-9399181 __ Do you Y

Re: how to pass a string variable via URL redirection

2004-08-21 Thread Gunnar Hjalmarsson
Xiangli Zhang wrote: I am trying to redirect from cgi1(with one string variable say $str with value from its calling parent html form) to cgi2, I know I can use redirect function of CGI model to implement redirection. But i don't know how to pass $str to cgi2 from cgi1. If you print a &quo

how to pass a string variable via URL redirection

2004-08-20 Thread Xiangli Zhang
I am trying to redirect from cgi1(with one string variable say $str with value from its calling parent html form) to cgi2, I know I can use redirect function of CGI model to implement redirection. But i don't know how to pass $str to cgi2 from cgi1. Can anybody help me the question? tha

Re: String Variable

2004-05-31 Thread Omkar Prabhu
you can use $outstring=`ping -a $hostname | cut -c20-30`; - Original Message - From: "Wiggins d Anconia" <[EMAIL PROTECTED]> To: "Werner Otto" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 20, 2004 7:46 PM Subject: Re: String Variabl

Re: String Variable

2004-05-20 Thread Wiggins d Anconia
> hi there, > > I've got the following example: > > system ("ping -a $hostname | cut -c20-30"); > > how do I get the following result which is (is alive) into a string > variable as I keep on getting 0 > > Please help. > Seems like you mi

String Variable

2004-05-20 Thread Werner Otto
hi there, I've got the following example: system ("ping -a $hostname | cut -c20-30"); how do I get the following result which is (is alive) into a string variable as I keep on getting 0 Please help. Regards Werner -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: Killing multiple ' ' spaces from a string/$variable

2001-10-02 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Shannon Murdoch) wrote: > > From: [EMAIL PROTECTED] (Kevin Meltzer) > > my @codes = split(/\s+/,$all_codes); > Worked like a charm. While we're on the topic of deletion/exclusion of > string elements when brought in to an array, how do I kill

Re: Killing multiple ' ' spaces from a string/$variable

2001-10-02 Thread Shannon Murdoch
Cc: [EMAIL PROTECTED] > Subject: Re: Killing multiple ' ' spaces from a string/$variable > > Hi Shannon, > > Very close. You are allowed to use a pattern in a split. > > my @codes = split(/\s+/,$all_codes); > > Should give you what you want. This w

Re: Killing multiple ' ' spaces from a string/$variable

2001-10-02 Thread Kevin Meltzer
Hi Shannon, Very close. You are allowed to use a pattern in a split. my @codes = split(/\s+/,$all_codes); Should give you what you want. This will split the string on 1 or more spaces. Look at 'perldoc -f split' for more information. Cheers, Kevin On Wed, Oct 03, 2001 at 09:47:11AM +1000, Sha

Killing multiple ' ' spaces from a string/$variable

2001-10-02 Thread Shannon Murdoch
Hi all, I'm trying to get this string (example): $all_codes = '4c1 4- 4c2 4-8b1 8g1'; in to an array (@codes), using it's whitespace as the delimiter. ie. @codes = split(/ /,$all_codes); but I keep getting extra whitespace elements picked up into the array...: '4c1,4-,4c2,4-, ,8b1,8g1'