> On Fri, 09 Feb 2001 12:06:12 -0500, Ken Fox wrote:
> 
> 
> That may work for C, but not for Perl.
> 
>       sub test {
>           my($foo, $bar, %baz);
>           ...
>           return \%baz;
>       }
> 
> You may notice that only PART of the locally malloced memory, gets
> freed. the memory of %baz may well be in the middle of that pool. You're
> making a huge mistake if you simply declare the whole block dead weight.
> 
> -- 
>       Bart.

but is this an example of the way people SHOULD code, or simply are ABLE to 
code this.   are we considering to deprecate this type of bad style, and force
to a programmer to, in this case, supply a ref to %baz in the arguements to
this sub?

Mark Koopman
Software Engineer

WebSideStory, Inc

10182 Telesis Court
San Diego CA  92121
858.546.1182.##.318
858.546.0480.fax

perl -e '
eval(lc(join("",
map ({chr}(q(
49877273766940
80827378843973
32767986693280
69827639463932
39883673434341
))=~/../g))));'

Reply via email to