Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Designing a package object

by PhiRatE (Monk)
on Jul 25, 2002 at 05:47 UTC ( [id://185127]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub set_choice {
        my ($self, $id, $name, $sub_or_id, $return_sub) = @_;
    ...
            $self->{$id}{_sub_or_id} = $sub_or_id;
            $self->{$id}{_return_sub} = $return_sub;
    }
    
  2. or download this
    my @entries = ("Entry #1","Entry #2","Entry #3","Quit");
    my $count=0;
    for (@entries) {
            $menu->set_choice($count++,$_);
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found