in reply to Re: Re: A problem with variables inside a system() call
in thread A problem with variables inside a system() call

<< introduces a here document. The syntax and name come from the shell; < filename means get the input from a filename, and << means get the input from right here.

You can find more in the perldata(1) manpage, or the manual for your shell.

Replies are listed 'Best First'.
Re: A problem with variables inside a system() call
by sagat (Novice) on May 13, 2004 at 22:42 UTC
    Thanks for the info.

    In any case, I got the $command << EOF from some other perl code provided by the DB maker, and I never felt quite comfortable with it. I guess it works, but I think I'll redo it using system().

    Once again, thanks for the help!

    -chris

      Re-implementing with open(CMD,"| $command"); might be closer to what you want.