$cmd ends up containing C:\ABCDEFGH.txt
You perhaps wanted @cmd?
#!usr/bin/perl -w use strict; my @cmd=qw(lpr -S SYSTEMX -P QGPL/SPYVIEW -o l C:\\ABCDEFGH.txt); system(@cmd) or die "cannot do this: $!";
In reply to Re: lpr command from perl not working.
by bingos
in thread lpr command from perl not working.
by smanicka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |