I think it's either not possible or is a Bad Thing. Pascal can know what identifiers in the with body refer to record members and which ones are variables. However, a perl hash is an open structure, it can have any key, so perl would have no way to deduce which $-variables are meant to be hash elements.
In reply to Re^3: Duplicating Pascal's with statement in Perl for anonymous data structures
by ambrus
in thread Duplicating Pascal's with statement in Perl for anonymous data structures
by Popcorn Dave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |