Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: don't understand bless

by superfrink (Curate)
on Mar 26, 2008 at 15:27 UTC ( #676425=note: print w/ replies, xml ) Need Help??

in reply to don't understand bless

Can't call method "Workbooks" on unblessed reference ... my $book = $Excel->Workbooks->Open( $excel_template ) or die ; # open +Excel file
The code posted is trying to run the Workbooks method of the $Excel variable. In Object-Oriented speak a "method" is a subroutine tied to an object or class.

To get started with objects in perl see bless, perltoot, and perlobj.

Comment on Re: don't understand bless
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2015-11-30 20:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (783 votes), past polls