in reply to hiding perl-wrapped command output

I'll try both of these methods. Would something like this also be useful?:
open CMD, "/sbin/fdisk|", '<', "-uM -q -L -O disksave --no-reread $dev +ice <<EOF\n0,\nEOF" or die "dude, what are you trying to do?";
Perhaps not, but I'll mess around with it. Also, what does the '*' indicate in open local(*STDOUT)?

Replies are listed 'Best First'.
Re^2: hiding perl-wrapped command output
by hsinclai (Deacon) on Feb 02, 2005 at 03:38 UTC
    Include  $! in your die statement if you need to learn the error..

    what does the '*' indicate in
    typeglob on handle ... Search for "local on a glob" in this page which explains it..