in reply to Call shell script in Perl

One trick that you can use is to wrap one character inside square brackets:
$count=`xyz [a]bcd`
The shell will interpret "[a]" as "a", but in the process list it shows up as "[a]bcd" and will not be matched.

Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

Don't fool yourself.

Replies are listed 'Best First'.
Re^2: Call shell script in Perl
by mrborisguy (Hermit) on May 26, 2005 at 18:30 UTC

    The "Most Ingenious Answer of the Day Award" goes to frodo72. Your prize is a highly coveted upvote from me.

        -Bryan

      Now that you gave the prize to me, I can confess that it's not my invention - I saw it in some grep-related documentation a lot of time ago. Maybe you can mentally turn it into a "Memory Award"!

      Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

      Don't fool yourself.