w3ntp has asked for the wisdom of the Perl Monks concerning the following question:
If I run the script this is what I get#!/usr/local/bin/perl chomp($_=$ARGV[0]); system `echo $_ > /tmp/gerbil.txt`; exit;
The program above is passed live data one line at a time. It does not contain any # charters. Any thoughtt? thanks/try.pl a|b|c|d bash: b: command not found bash: c: command not found bash: d: command not found
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to read in pipe characters
by Anonymous Monk on Oct 07, 2010 at 12:17 UTC | |
|
Re: How to read in data with pipe characters
by ww (Archbishop) on Oct 07, 2010 at 12:22 UTC | |
|
Re: How to read in data with pipe characters
by cdarke (Prior) on Oct 07, 2010 at 12:31 UTC | |
|
Re: How to read in data with pipe characters
by JavaFan (Canon) on Oct 07, 2010 at 13:34 UTC | |
|
Re: How to read in data with pipe characters
by Anonymous Monk on Oct 07, 2010 at 12:27 UTC |