in reply to Re: Re: Java Repackager...
in thread Java Repackager...

My point was that you can replace whole script with this one-liner.

If you will embed it into some bigger script than it will do cause new perl interpreter to spawn. As for Really Bad side effects: it will be perfomance hit (but you should not care about it in this case) and probably it is not very good style. At least I would not embed such one-liner in my Perl code myself because IMHO embedding Perl code inside Perl code looks somewhat ugly.

Probably foreach loop could be written slightly shorter but in general your original script is ok. I just wanted to show fast dirty way to do the same.

Replies are listed 'Best First'.
Re: Re3: Java Repackager...
by rje (Deacon) on Nov 29, 2001 at 02:40 UTC
    Thanks for the clarification.

    The script was written for a colleague who knows neither
    perl nor regexps; therefore, the outer scaffolding is
    necessary. However, your comment stands: the performance
    hit just doesn't matter in this case, it's true.

    Rob