Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Where/When is OO useful?

by sauoq (Abbot)
on Sep 10, 2002 at 19:42 UTC ( [id://196794] : note . print w/replies, xml ) Need Help??


in reply to Re: Where/When is OO useful?
in thread Where/When is OO useful?

delete $ERA {$self}, $Strikeouts {$self}

That won't work like you expect it to.

$ perl -le 'my(%one,%two);$one{k}=1;$two{k}=2;delete $one{k}, $two{k}; + print "one exists" if exists $one{k};print "two exists" if exists $t +wo{k}' two exists

Nice technique though.

-sauoq
"My two cents aren't worth a dime.";