On Wed, Jul 02, 2003 at 10:33:01AM +0100, Pense, Joachim wrote:
> 
> Abigail wrote
> > 
> > 
> > On Wed, Jul 02, 2003 at 07:58:03AM +0100, Pense, Joachim wrote:
> 
> > > that is often recommended in the Perl community. I think it 
> > is easy to see
> > > which version looks elegant and which one kludgy:
> > > 
> > > (Quoted from earlier in the thread, reformatted:)
> > > 
> > > |   sub x {
> > > |       static $vbl ;
> > > |       ...
> > > |
> > > 
> > > | {
> > > |     my $vbl;
> > > |     sub x {
> > > |     ...
> > > |     }
> > > | }
> > 
> > 
> > IMO, not doubt the latter looks far more elegant - as that 
> > enables your
> > 'static' variable to be shared with more than one function. Something
> > you can't do with a 'static' declared variable inside a function.
> > 
> 
> Mighty != elegant.
> 

And neither is not being flexible.


Abigail

Reply via email to