nictam has asked for the wisdom of the Perl Monks concerning the following question:
$text = "foo"; sub func { return "something"; } ... ...
so that I can now access $obj{"text"}, or $obj->text... I could also call $obj->func().$obj = capsule("foo.pl");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Encapsulate function and variables
by blazar (Canon) on Jun 19, 2007 at 11:53 UTC | |
|
Re: Encapsulate function and variables
by gaal (Parson) on Jun 19, 2007 at 11:46 UTC | |
|
Re: Encapsulate function and variables
by guinex (Sexton) on Jun 19, 2007 at 12:05 UTC | |
|
Re: Encapsulate function and variables
by clinton (Priest) on Jun 19, 2007 at 12:57 UTC | |
by nictam (Initiate) on Jun 20, 2007 at 12:14 UTC | |
|
Re: Encapsulate function and variables
by Anonymous Monk on Jun 19, 2007 at 11:44 UTC |