in reply to Re: lpr command from perl not working.
in thread lpr command from perl not working.

I did that and now it doesnt give the actual usless something 7 times.But it still says cannot do this at line 4
  • Comment on Re^2: lpr command from perl not working.

Replies are listed 'Best First'.
Re^3: lpr command from perl not working.
by aaron_baugher (Curate) on Feb 11, 2009 at 21:44 UTC
    system() returns the exit value of the command being run, which (on *nix systems, anyway) will be zero on success, so "system($foo) or bar()" will do bar() when $foo succeeds, not when it fails.
      Would it be better if i assigned the value to a variable, tested it to check if its a 0 or a 1 and then did my error reporting? BTW i can concurrently check the as400.And I havent recieved the file