good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Need pipe and parameter helpby shmem (Chancellor) |
on Nov 18, 2016 at 11:53 UTC ( [id://1176083]=note: print w/replies, xml ) | Need Help?? |
Please tidy up that response, it is badly formatted. $ ( echo Hi; sleep 3; echo Bye ) | ./ReadAPipe.pl a b c This was read from the pipe: <Hi Bye> This was the read from the parameters: ./ReadAPipe.pl a b c This was read from the pipe: <> This was the read from the parameters: Saving your (cleaned up) ReadPipe.pm to a sensible location and running your ReadAPipe.pl, I get:
I suspect that the code / result you posted isn't consistent (version mismatch?) Please note that the value returned requireing your ReadPipe.pm (which is invoked by use) is the number of elements contained in @EXPORT_OK - which might, or might not, be intended. You should be aware of this side-effect. If your module read
then loading the module would fail, since the value computed from my $foo is undefined.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|