Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Undefined Subroutine

by little (Curate)
on May 21, 2003 at 21:26 UTC ( #259897=note: print w/ replies, xml ) Need Help??


in reply to Undefined Subroutine

Please rethink your use of quotes. As far as I can see you are forcing Perl to look through each string for possible variable interpolation.

I really gonna wonder if

print '<option> Compliment </option>'; # why omit the closing tag? # use this for pretty output print '<option> Compliment </option>' . "\n"; # or even like this use constant CRLF = "\n"; # ... print '<option> Compliment </option>' . CRLF ; # or use CGI::Pretty
would lead to strange results as well as your
print "<option> Compliment";
At least the first one should run faster :-) Do you have any subs declared matching the one or the other "name" in your output strings? Do you, worst I could think of, have a filehandle called OPTION?

Have a nice day
All decision is left to your taste


Comment on Re: Undefined Subroutine
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2015-07-05 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls