in reply to
perl system function
There is a newline character at the end of the device name.This issue can be fixed by changing $device = <>; to chomp($device = <STDIN>);.
That did the trick. Thank you very much for your help.
Results (470 votes),