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