Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Pipe Question

by sutch (Curate)
on Apr 26, 2001 at 00:23 UTC ( #75603=note: print w/ replies, xml ) Need Help??

in reply to Pipe Question

On my Unix system, scripts are not executable from the current directory without preappending "./" to the filename.

Your scripts works fine when I replace your open statement with:

open (P, "| ./");

Comment on Re: Pipe Question
Download Code
Replies are listed 'Best First'.
Re: Re: Pipe Question
by sachmet (Scribe) on Apr 26, 2001 at 00:26 UTC
    It shouldn't, unless you're writing to P. See my response below.

    What you're probably seeing is writing to stdout, and you're not getting a count of 4 underneath the words.
      You're correct about the placement of the pipe (and not getting a count without its correct placement).

      But on my system this works:

      open (P, "./ |");

      and this does not work:

      open (P, " |");

      From the shell I must always specify a script's path, unless the path is defined in PATH.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://75603]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2015-11-30 05:04 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (758 votes), past polls