Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: GUI PerlDice for PerlMonks! v.1.1

by ichimunki (Priest)
on Jan 11, 2001 at 01:27 UTC ( #50985=note: print w/replies, xml ) Need Help??


in reply to GUI PerlDice for PerlMonks! v.1.1

Okay. I'm a little confused why you assign all these strings to variables with entirely vague var names like $one, $two ... only to assign the lot of them to a list. The following will be a lot easier to maintain/adapt/read:
$roll = "something"; @strings = ( 'This is a string', 'Here is another', "I'm on a $roll", BAREWORD, 'That last one is interpreted as a string', 'All Done.' ); which can be retrieved using simple $strings[$x] notation.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2021-10-28 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (96 votes). Check out past polls.

    Notices?