Re: s/// w/o intermediate variables?

Bart Lateur <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Organization MediaMind
Message-ID <[email protected]>
On Wed, 5 May 2004 02:04:54 +0100, Allen, Greg wrote:

>But if we were golfing... Well I suppose it's still pretty ugly.
>
>I do find the
>($transformed = $package) =~ s,::,/,g;
>construction pretty unreadable though. People expect flow of control to be
>left to right, while data flow in assignments is right to left. When you mix
>the two idioms on the same line of code, bugs are close by.

Such as forgetting about the file extension.

When programming in a vacuum, bugs are close by.

-- 
	Bart.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.