in reply to Re: Re: Small question: Why can't I print "@-"?
in thread Small question: Why can't I print "@-"?
Sure, you could use one of those. But, why would you?
Would it improve efficiency? Uh uh. Clarity? Certainly not.
I can't think of a good reason... can you?
BTW, I didn't realize this was a "bug" fixed in 5.8. I was thinking that perl didn't like to interpolate any variables that didn't start with a \w character. But, putting the name in braces will work with other (admittedly poor choices for) variable names such as @% and @!, not just ones perl knows.
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Small question: Why can't I print "@-"?
by demerphq (Chancellor) on Sep 23, 2003 at 23:30 UTC | |
by sauoq (Abbot) on Sep 24, 2003 at 00:09 UTC | |
by demerphq (Chancellor) on Sep 24, 2003 at 00:24 UTC | |
by sauoq (Abbot) on Sep 24, 2003 at 01:13 UTC |