in reply to Re: Control Structure problem, mistake can't be found
in thread Control Structure problem, mistake can't be found
it's object oriented Perl, right? Or is it just another way to give hash keys a value? I am only familiar with this type of syntax for the same thing:my @quiz = ( {ask => "Name the definitive rock band..", answer => "The Rolling Stones" }, {ask => "What is their best song?", answer => "Moonlight Mile" }, {ask => "What is their best album?", answer => "Sticky Fingers" } );
I've just never seen it done in this way, and I was wondering what the difference was (which when I looked it up, I thought I understood it to be "object oriented"), and if there is a benefit of chosing one over the other?$myquiz{"question_here"} = "answer here";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Control Structure problem, mistake can't be found
by GrandFather (Saint) on Aug 26, 2008 at 00:12 UTC | |
|
Re^3: Control Structure problem, mistake can't be found
by FunkyMonk (Bishop) on Aug 25, 2008 at 22:39 UTC |