in reply to Re^2: Use text string as stdin for system process
in thread Use text string as stdin for system process

Uhhh ... how are they going to know?

-derby
  • Comment on Re^3: Use text string as stdin for system process

Replies are listed 'Best First'.
Re^4: Use text string as stdin for system process
by baldywilson (Initiate) on Jan 05, 2007 at 16:33 UTC
    The b***ards are going to check the source.
      Actually, you can do exactly the same thing in Perl, although it's considered stylistically sucky and is a hazard to security if there are variables that mischievous users can set to evil values.
      $x=`cat <<endl | grep whatever yadda yadda whatever yadda yadda endl`; chomp $x; print qq{\$x="$x"\n};
      prints
      $x="whatever"