in reply to printing a string

Does
# untestet! system("echo '$string' | lpr");
work? I use a similar construct to pipe some data to gnuplot and I think an 'echo' is necessary. (And perhaps you'll have to specify the Printer with '-P PRINTERNAME', too.)

k