in reply to [substr] anomaly or mine?
The first is a special behavior of 4-argument substr which is rather handy. The second is just the way assignments work (what value they themselves return). Just like:
prints "bar".my $x= "foo"; print $x= "bar";
Update: Actually, I expected substr(...)= expr to return expr. Rereading, I see that it isn't. I'd call that a bug.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: [substr] anomaly or mine?
by Chmrr (Vicar) on Aug 19, 2002 at 23:57 UTC | |
by BrowserUk (Patriarch) on Aug 20, 2002 at 00:16 UTC | |
|
Re: (tye)Re: [substr] anomaly or mine?
by BrowserUk (Patriarch) on Aug 20, 2002 at 00:25 UTC | |
|
Re^2: [substr] anomaly or mine?
by tadman (Prior) on Aug 20, 2002 at 08:21 UTC | |
|
Re: (tye)Re: [substr] anomaly or mine?
by bart (Canon) on Aug 20, 2002 at 10:28 UTC |