http://qs1969.pair.com?node_id=257732

kidwahoo94 has asked for the wisdom of the Perl Monks concerning the following question:

I have some sample like this -bam-
system ("net use J\: \\\\$hostname\\c\$");
It will print 'Command finished successfully' on the screen. How could I grab the third 'token' ('successfully') to use for say output...I know how to perform generic error trapping, but would like more versatility in using success/error output messages.