Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: blessed confusion

by bluescreen (Friar)
on Sep 08, 2010 at 23:47 UTC ( #859441=note: print w/ replies, xml ) Need Help??


in reply to blessed confusion

the problem is in the URL package you have $url in the bless call and it is not defined at that point, it should be $up

Strong recomendation:

use strict; use warnings;

For all code: packages, scripts, ...


Comment on Re: blessed confusion
Download Code
Re^2: blessed confusion
by perl-diddler (Hermit) on Sep 09, 2010 at 00:34 UTC
    Those are already in use.

    The code was combination made-up for example (started that way), then got lazy and copied in some actual lines resulting in '$url' (in my example), being blessed one place, while the actual code used '$up' (url pointer). For the example, I thought url was more clear, though in my code, use of 'p' suffixes is done enough to make the use of '$u' in class '_U_rl', sufficient to me to mean 'url_pointer'.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2015-07-04 03:24 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 (57 votes), past polls