in reply to Run Perl function using href
The way to avoid quote-confusion is to learn to use the q() and qq() functions which provide single and double quotes. So your link could be built like this:
Note - the q and qq functions allow the usage of almost any delimiter - I choose the vertical bar, which is not commonly used for quoted stuff or HTML.my $new_link = qq|<a href="perlfunction">Info on perl functions</a>|;
"XML is like violence: if it doesn't solve your problem, use more."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Run Perl function using href
by rainmanh (Initiate) on Aug 15, 2011 at 14:42 UTC | |
by NetWallah (Canon) on Aug 15, 2011 at 22:22 UTC | |
by chromatic (Archbishop) on Aug 15, 2011 at 22:57 UTC | |
by ww (Archbishop) on Aug 15, 2011 at 15:30 UTC | |
by rainmanh (Initiate) on Aug 15, 2011 at 16:00 UTC | |
by Anonymous Monk on Aug 16, 2011 at 00:27 UTC |