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.