in reply to printing a string
Did you mean $$string? That makes $string a reference; just thought I'd ask.system "echo $$string | lp -"
Then use print to write to the pipe (don't forget to close the handle).open(my $handle,'|-', 'lp -') or die "Oops: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: printing a string
by diamantis (Beadle) on Apr 13, 2007 at 15:41 UTC |