in reply to Re: Is this the most elegant way to code directory lookup?
in thread Is this the most elegant way to code directory lookup?
Be thankful that Perl throws it away. If you do the same thing in (e.g.) ksh then the command for the shell to execute is evaluated as the return from the back-ticked command. i.e. it doesn't throw the output away it executes it!
Now I can see how this might be useful in some obscure circumstances.....however I have seen back-ticks used without the realization of the implications :-(
And yes, it did take me a while to work out where the obscure error messages were coming from!
Cheers
Dave.R
2006-10-03 Retitled by planetscape, as per Monastery guidelines: one-word (or module-only) titles hinder site navigation
Original title: 'Re^2: Backticks'
|
|---|