Re: Unfamiliar calling of a subroutine

2012-06-08 Thread sono-io
On Jun 7, 2012, at 10:19 PM, Brock wrote: > Finally to your last question, how is this different than just calling the > package::sub directly? With a method call the instance variable, in this case > $catalog, always gets passed as the first parameter to the method. Usually > people name it $s

Re: Unfamiliar calling of a subroutine

2012-06-07 Thread Brock
On 2012.06.07.20.21, sono...@fannullone.us wrote: > Would someone be so kind as to explain the following, or at least point > me to further reading? > > $item = > $main::global->{open}->{catalog}->SurfDB::split_line($main::global->{form}->{'itemid'}); > > The part I'm having trouble

Re: Unfamiliar calling of a subroutine

2012-06-07 Thread pangj
Would someone be so kind as to explain the following, or at least point me to further reading? $item = $main::global->{open}->{catalog}->SurfDB::split_line($main::global->{form}->{'itemid'}); That's Perl OO programming. You may want to read this book: http://shop.oreilly.com/produc