The system function runs a command in the OS shell. Whatever is in the params
of system is never Perl code (well maybe it could be if you were using a perl
shell but that is another story) ... the '>' is a redirection operator to
redirect the output to a file or handle ..
hope this helps
On Thu, Aug 23, 2001 at 09:52:03AM -0700, Buffy Press shaped the electrons to read:
> Hello,
>
> I am *very new* to Perl and to this list. I have a question I am hoping
> someone can answer. I am looking over an existing Perl script and came
> across this block of code:
>
> # Create the cmdfile
> my $runprog = "$NexBase::idxBase/cmdfiles/$indexname > $cmdfile";
> exit $? if system($runprog);
>
> Can anyone tell me what the > symbol means here:
>
> my $runprog = "$NexBase::idxBase/cmdfiles/$indexname > $cmdfile";
>
> I have looked in O'Reilly's Programming Perl book and found lots of
> information about the > symbol, but I could not see how it relates in
> the above variable.
>
> Any help is appreciated.
>
> Thanks,
> Buffy
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]