Loading ...
Sorry, an error occurred while loading the content.

What is this doing ??

Expand Messages
  • T.S. Ravi Shankar
    Hi all : I see these lines at the very beginning lines of a perl program. Could anyone explain what this is doing ?? eval (exit $?0) && eval exec perl
    Message 1 of 1 , Jun 3, 2003
    • 0 Attachment
      Hi all :

      I see these lines at the very beginning lines of a perl program. Could
      anyone explain what this is doing ??

      eval '(exit $?0)' && eval 'exec perl $PERL_OPTIONS $0 ${1+"$@"}'
      & eval 'exec perl $PERL_OPTIONS $0 $argv:q'
      if 0;

      In what way "eval" help here in trapping the errors ?? Where does
      $PERL_OPTIONS get value ??

      I am new to PERL-ing; Please help me.

      Thank you very much,
      Ravi


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.