in reply to Connecting two scripts

If this is intended for a *nix platform, you need to fix up the shebang:

#!/usr/bin/perl

You missed the "!".

Replies are listed 'Best First'.
Re^2: Connecting two scripts
by mamawe (Sexton) on Aug 15, 2007 at 11:14 UTC
    Alternatively change the line reading
    open HG, '|second.pl';
    to
    open HG, '|perl second.pl';
    Maybe this would work in windows too (no test environment here).

      No no, both run ok but, can't know how take the input in the second script.

      thk

Re^2: Connecting two scripts
by madox (Novice) on Aug 15, 2007 at 16:54 UTC

    Yes, thank for detail, i'm correct this now, but this test laboratory is run on win..

    Thk

      <offtopic>
      ups, it's response the first answer... sorry can't move.
      </offtopic>