Re: Perl CGI-html quotation marks

2014-07-04 Thread Shlomi Fish
7;/data&tracks=DNA,transcript_with_no_features,Genes&highlight=\') > > > > '; > > > > print $html1; > > print $directory; > > print $html3; > > print $directory; > > print $html2; > > print $directory; > > print $html4; > &

Re: Perl CGI-html quotation marks

2014-07-04 Thread Uri Guttman
t $html1; print $directory; print $html3; print $directory; print $html2; print $directory; print $html4; Another person in my group had a look at it today and let me know that I hadn't closed the button THING with a ">". Apparently with that it's able to handle the single quotatio

Re: Perl CGI-html quotation marks

2014-07-04 Thread Sam
On 07/04/2014 12:41 AM, Shaji Kalidasan wrote: Here's one way to do it print << "BUTTON"; http://www.example.com')"> BUTTON or: print qq{http://www.example.com')">}; -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://l

Re: Perl CGI-html quotation marks

2014-07-04 Thread James Kerwin
t I hadn't closed the button THING with a ">". Apparently with that it's able to handle the single quotation marks. What a fool! Thanks, James. On Thu, Jul 3, 2014 at 5:23 PM, Uri Guttman wrote: > On 07/03/2014 12:16 PM, James Kerwin wrote: > >> Hello a

Re: Perl CGI-html quotation marks

2014-07-03 Thread Shaji Kalidasan
Here's one way to do it print << "BUTTON"; http://www.example.com')"> BUTTON On Thu, Jul 3, 2014 at 9:53 PM, Uri Guttman wrote: > On 07/03/2014 12:16 PM, James Kerwin wrote: > >> Hello all, >> >> I'm currently using Perl CGI to generate a "Results" webpage. This >> results webpage specifies un

Re: Perl CGI-html quotation marks

2014-07-03 Thread Uri Guttman
On 07/03/2014 12:16 PM, James Kerwin wrote: Hello all, I'm currently using Perl CGI to generate a "Results" webpage. This results webpage specifies unique directories generated within the script and print these in between the blocks of html so various download and display buttons work. My probl

Perl CGI-html quotation marks

2014-07-03 Thread James Kerwin
Hello all, I'm currently using Perl CGI to generate a "Results" webpage. This results webpage specifies unique directories generated within the script and print these in between the blocks of html so various download and display buttons work. My problem is that I'm using a button to open a file i

Re: removing single quotation marks from a string ?

2006-11-23 Thread Gregory Machin
Thanks for all the advice :-). I'll follow up on it shortly, this is just my dummy script for testing :-) Have a grate day .. On 11/17/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Mumia W. wrote: > > This works: > > use Mysql; > use strict; > use warnings; > > my $regex = '^(\d+)-(\w+)-(\d+) (\d

Re: removing single quotation marks from a string ?

2006-11-17 Thread John W. Krahn
Mumia W. wrote: > > This works: > > use Mysql; > use strict; > use warnings; > > my $regex = '^(\d+)-(\w+)-(\d+) (\d+):(\d+):(\d+).*?client' > . '\s(\d+)(.\d+)(.\d+)(.\d+)#(\d+): view external: (.*)$'; You need to escape the . character to match a literal period. You should probably also use t

Re: removing single quotation marks from a string ?

2006-11-17 Thread Mumia W.
On 11/17/2006 01:22 AM, Gregory Machin wrote: Hi Hi Gregory Machin. You top-posted. Please don't do that. I corrected the top-posing and made it a bottom-post. I'm still not getting the result i require please could someone have a quick look and see what i'm missing ... the following code

Re: removing single quotation marks from a string ?

2006-11-16 Thread Gregory Machin
print("hour is $hour\n"); print("minute is $minute\n"); print("second is $second\n"); print("clientip is $clientip\n"); print("port is $port\n"); print("query is $qu

Re: removing single quotation marks from a string ?

2006-11-16 Thread John W. Krahn
Gregory Machin wrote: > Hi Hello, > I need to remove all the quotation marks from, a string > I tried s/\'// but it did not work. > what have i missed ?? You need to use the /g (global) option: s/'//g Or better yet, use the tr/// operator: tr/'//d John --

removing single quotation marks from a string ?

2006-11-16 Thread Gregory Machin
Hi I need to remove all the quotation marks from, a string I tried s/\'// but it did not work. what have i missed ?? Many Thanks -- Gregory Machin [EMAIL PROTECTED] www.linuxpro.co.za -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: quotation marks

2001-07-03 Thread Jeff 'japhy' Pinyan
On Jul 3, Paul said: >> NOTE: -foo is a NOT bareword. The unary - before that which WOULD be >> a bareword makes it NOT a bareword. Correction: -foo is NOT a bareword. It is a unary - in front of a bareword. >From perlop: Unary "-" performs arithmetic negation if the operand is num

Re: quotation marks

2001-07-03 Thread Paul
--- Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote: > On Jul 3, Paul said: > > >> > foo => 'bar' > >> > 'foo' => 'bar' > >> > >> And are they the same as: > >> > >> "foo" => "bar" > >> 'foo' => "bar" > > > >Those aren't the same. > >"$foo" is very different from '$foo' > >I think => d

Re: quotation marks

2001-07-03 Thread Jeff 'japhy' Pinyan
On Jul 3, Paul said: >> > foo => 'bar' >> > 'foo' => 'bar' >> >> And are they the same as: >> >> "foo" => "bar" >> 'foo' => "bar" > >Those aren't the same. >"$foo" is very different from '$foo' >I think => does interpolative double-ish quoting, doesn't it? => does no interpolation.

Re: quotation marks

2001-07-03 Thread Paul
--- Pozsar Balazs <[EMAIL PROTECTED]> wrote: > > The => (fat arrow) auto-quotes the left-hand operand as long as > it's a > > bareword. > > > > foo => 'bar' > > > > is the same as > > > > 'foo' => 'bar' > > And are they the same as: > > "foo" => "bar" > 'foo' => "bar" > ... > and so on?

quotation marks

2001-07-03 Thread Pozsar Balazs
> The => (fat arrow) auto-quotes the left-hand operand as long as it's a > bareword. > > foo => 'bar' > > is the same as > > 'foo' => 'bar' And are they the same as: "foo" => "bar" 'foo' => "bar" ... and so on? pozsy --