[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] '@ARGV' vs 'print | xargv'



I have a program which processes each $ARGV[x] of @ARGV:

1st - Search for regex 'foo'
2nd - On finding regex 'foo', prompt via print ...; $inputstuff = <STDIN>;

The program works fine as a module linked to other programs or when passed
@ARGV directly on the command line.

But when I execute the following command line,

        find /my/dir/struct -name "index.*html$" -print | xargv my.script.pl

and pass the arguments with xargv, the prompt line no longer looks to the
keyboard for input.  It just blows on through the prompt line as if it were
getting input from another source.

Any insight into how to fix this?



Patrick Corcoran
corcoran@well.com