just execute it with "perl -wl foo" or add the shebang line: #!/usr/bin/perl -w
On 6/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
"Anthony Ettinger" <[EMAIL PROTECTED]> writes: > The syntax {} is for a hashref, it's just an un-named hashref inside > that object. > > my $foo = new Foo; > print $foo->getFooKey(); > $foo->setFooKey('new value'); > print $foo->getFooKey(); Thanks for the demo... I'm in well over my head here but the name of this group includes `beginner' so I guess this is the place for me. I didn't really understand your comments and I guess the code is supposed to run and print something so I can see what it is doing. It doesn't run here and erros out with: Can't locate object method "within" via package "Package" (perhaps you forgot to load "Package"?) at ./myOOP.pl line 15. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
-- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>