Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Bad name after xxxx'

by fullermd (Priest)
on Jan 25, 2011 at 04:21 UTC ( #884050=note: print w/replies, xml ) Need Help??

in reply to Bad name after xxxx'

Works for me on *nix on everything form 5.6 to 5.12 with no errors (after putting something in for the CONSTANT's). Any change you've got some weird unprintable character in it somehow? What are you using for an editor?

The various forms of multiple quoting you have wouldn't work, except the one using a plain doublequote ". That should work, but single quote is also fine. The issue with single quotes acting like package names is when they look like part of the variable; e.g., if you had $x = "$users's coat".

Replies are listed 'Best First'.
Re^2: Bad name after xxxx'
by KyussRyn (Acolyte) on Jan 25, 2011 at 05:42 UTC
    This is the closest to a solution of the replies so far, I am using Eclipse with EPIC package installed. When I save the file the previously mentioned error appears.
    #!c:\Perl\bin\perl use warnings; use strict; use CGI ':standard'; use constant CONSTANT1 => '../'; use constant CONSTANT2 => '../'; my $htmlPage = CGI->new; print $htmlPage->a( { -href => CONSTANT2 , -target => '_self' }, '&#12371;&#12385;&#12425;' + ); print "</p>\n<p>"; print $htmlPage->a( { -href => CONSTANT1 , -target => '_self' }, '&#21033;&#29992;&#35215;& +#32004;' ); print "</p>";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://884050]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2016-10-22 17:36 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (297 votes). Check out past polls.