in reply to
Assign & substitute in one statement?
Try: ($dirfilename) = $url =~ s|http://foo.bar.com/||;
Comment on
Re: Assign & substitute in one statement?
Replies are listed 'Best First'.
Re^2: Assign & substitute in one statement?
by
Anonymous Monk
on Jun 15, 2004 at 22:39 UTC
And then please realize that it won't work { grin }. The binding will still go first, and $dirfilename will just return a scalar.
[reply]
In Section
Seekers of Perl Wisdom