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

Bart Lateur <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Organization MediaMind
Message-ID <[email protected]>
On Tue, 4 May 2004 15:30:40 -0400 (EDT), <[email protected]> wrote:

>  $tranformed = do { local $_ = $package; s,::,/,g; $_ };
>
>better?

No. You're still missing the file extension (".pm").

I wonder why there isn't a utility function in one of the core modules.

-- 
	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.