in reply to Re: sprintf vs formline
in thread sprintf vs formline

that works well!

I tried using 'my' earlier -- just because i'm in the habit of my vs local -- but that triggered an error

never thought of trying local instead -- figured it would just spew an error as well.

obviously, it didn't

Replies are listed 'Best First'.
Re: Re: Re: sprintf vs formline
by demerphq (Chancellor) on Sep 03, 2002 at 11:35 UTC
    Local is used for "hiding" the current value of a package level (dynamic variable) for the duration of a scoped block. Note that duration means temporal and not the spatial aspect of a scoped block.

    (Well actually you can localize array indexes and hash entries in lexicals too, but people dont do this often.)

    Yves / DeMerphq
    ---
    Software Engineering is Programming when you can't. -- E. W. Dijkstra (RIP)