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

Is there a way to identify/read the size of a DVD capacity instead of using a constant? I could use a constant, and as another Perlmonks user recommended me, I could add an argument on a command line to pick between single or dual-layered DVDs, but I suppose it would be a more flexible way of doing it, if I could identify its size beforehand. Let me know. Thank you
  • Comment on Read DVD capacity instead of using constants

Replies are listed 'Best First'.
Re: Read DVD capacity instead of using constants
by Anonymous Monk on Mar 31, 2010 at 20:29 UTC
      It seems like this module returns information as long as there is something written to the media. It won't return anything if medium is empty. Need a subroutine that reads the DVD and returns its size in bytes. Any resources out there? Thank you