On 9/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > $dir_to_check = `echo $dir_to_check`; > > if (-e $dir_to_check) now finds the appropriate directory.
Does it really? When $dir_to_check ends with a newline? Surely you jest. But just for fun.... my $dir_to_check = 'fred; rm /your/favorite/file'; The shell's echo is not your friend. Whatever it's doing for you, Perl itself can do better, cheaper, faster, safer. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/