Searching CPAN for a module to help me manipulate a magnetic tape device , I discovered Mt version 0.0.1 : ) , Which is a wrapper for mt in perl. This is something I used to do constantly in my previous job IE make perlscripts that were 'aware' of things like fsf,bsf,bot,eod and would do a pretty good job of positioning the tape for appends, even to the point of abstracting the tape further away from the program, keeping a running index as the last element on tape AKA CiTransfer (if you've had the _pleasure_ )
What really struck me as odd though is that the CPAN Mt has only two methods, a constructor and a ->command method, which is passed a hash that describes
( -command=>'fsf etc here' , -count=>'some number', -args=>@arrayref );
If that's a wrapper , then what have I written? an interface ?. My module uses methods like ;
$tape->forward(2); $tape->rewind; $tape->positionforWrite; $tape->checkindex $tape->writeindex(@index);
In reply to Talking to Magnetic Tapes by submersible_toaster
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |