Jeremy Howard wrote: > > This is one of those > few cases where VB has nicer syntax--within a 'with' block you have to > precede a property name with '.' to get the with block scope: > > dim height as double > dim ws as new Excel.worksheet // 'worksheet' has a 'height' property > > with ws > print .height // Accesses ws.height > print height // Accesses me.height > end with > > Whatever syntax we go with to get 'with' type scoping, please let's make > sure that we can still access the default scope within the block. Lets use hats again then. %ws{ print ^$height; #prints $ws{height} print $height; # perl5 visibility rules }; AFAIK, the entirety of %name{something here} is unplowed ground, as far as perl syntax goes. -- David Nicol 816.235.1187 [EMAIL PROTECTED] Does despair.com sell a discordian calendar?
- Re: pascal-like "with" was Re: Default file... Dave Storrs
- Re: pascal-like "with" was Re: Default... Johan Vromans
- Re: pascal-like "with" was Re: Def... Dave Storrs
- Re: pascal-like "with" was Re:... John Porter
- Re: pascal-like "with" was... Johan Vromans
- Re: pascal-like "with" was... Dave Storrs
- Re: pascal-like "with" was Re: Default ... Clayton Scott
- Re: pascal-like "with" was Re: Defa... Dave Storrs
- implied pascal-like "with" or "exp... David L. Nicol
- Re: implied pascal-like "with" or &... Jeremy Howard
- Re: implied pascal-like "with" ... David L. Nicol
- Re: implied pascal-like "with&qu... Jonathan Scott Duff
- Re: implied pascal-like "wi... David L. Nicol
- Re: implied pascal-like "wi... Dave Storrs
- Re: implied pascal-like &quo... Brian Wheeler
- Re: implied pascal-like &quo... Jonathan Scott Duff
- Re: implied pascal-like &quo... Dave Storrs
- PROTOPROPOSAL FOR NEW BACKSL... David L. Nicol
- Re: implied pascal-like &quo... Ken Fox
- Re: implied pascal-like &quo... Jeremy Howard
- Re: implied pascal-like &quo... David L. Nicol