Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: blessed confusion

by perl-diddler (Hermit)
on Sep 09, 2010 at 03:35 UTC ( #859456=note: print w/replies, xml ) Need Help??


in reply to Re: blessed confusion
in thread blessed confusion

!!

Talk about misdirecting error messages.

It should have said I was trying to bless _with_ a 'non-classname'. When I see 'bless $reference,$name', I see it as _value_ in '$name' being written into the 'package-type' label for the object. So the 'ref' is receiving (being blessed) with the value. Error message then says that something is wrong with the 'target' of my blessing...so...

Once I new the problem was with the 'classname' and not the target, problem was quickly found as prior level called 'new' as in:

$this=URL::Fetchable::Open(@_);
instead of:
$this=URL::Fetchable->Open(@_);
Thanks MUCH for pointing at the error message. I should have looked it up rather than expecting the wording to make sense. Now I have an idea why IBM et al, use ABEND3207. :-)

Replies are listed 'Best First'.
Re^3: blessed confusion
by ikegami (Pope) on Sep 09, 2010 at 05:19 UTC

    Error message then says that something is wrong with the 'target' of my blessing...so...

    Just like a person is blessed into a church, a value is blessed into a class. What you call the target of the bless is on the left of "bless into".

    An alternate phrasing would be "Attempt to use reference for class name".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://859456]
help
Chatterbox?
[thezip]: So, we have a small deployment coming up soon for a project. What is the general name for the project management documentation that details the tasks and schedules/ sequences for the execution of the deployment?
[thezip]: Deployment checklist?
[Corion]: thezip: Yeah - we have "CAP", but that means "Change Ablauf Plan" (Change Sequence Plan). Likely there is a true ITIL name for this too.
[Corion]: While I'm not really a fan of ITIL, it certainly is better than nothing and it at least provides a common vocabulary, so if you have ITIL somewhere at your disposal, it might be worth a look

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-02-23 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (350 votes). Check out past polls.