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

You're going to kick yourself...

by RMGir (Prior)
on Apr 10, 2002 at 16:33 UTC ( [id://158062]=note: print w/replies, xml ) Need Help??


in reply to A Bad Day to OOP :(

You're going to kick yourself :)
my $class = @_;
That sets $class to 1, the LENGTH of @_.

You meant to type

my ($class) = @_;
or
my $class = shift;

--
Mike

Replies are listed 'Best First'.
Re: You're going to kick yourself...
by JojoLinkyBob (Scribe) on Apr 10, 2002 at 16:54 UTC
    Thank you!Thank you!Thank you!Thank you!Thank you!Thank you! :) =~Desertcoder

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-16 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found