-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Jul 03, 2007 at 09:17:01PM -0300, Marco A P D'Andrade wrote:
> Usualy you can check valid of parameters sequence > It have the same effect, but you don't need to use %opt hash. Is this just a preference or is there: a) a performance improvement b) a readability improvement (obviously yes) c) other improvement? > my $optOk GetOptions( ... , 'help' => \$help ); > unless ( $optOk || $help ) { > print $usage, "\n"; > exit 1; > } Very nice, I'm embarrased to admit this, but I had never actually checked the perldoc page so I didn't know that GetOptions returned a value. Makes sense and I can see its usefulness. Yes, you are a perl monger :-) - -- Regards... Todd when you shoot yourself in the foot, just because you are so neurally broken that the signal takes years to register in your brain, it does not mean that your foot does not have a hole in it. --Randy Bush Linux kernel 2.6.17-6mdv 2 users, load average: 0.01, 0.01, 0.00 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGlk0KY2VBGxIDMLwRAo3tAJ4iZ3m2pGTxNs6iIHshZxuTmzKTgACfbwYs A0cphc/mRbVRYv3vJikwsZE= =mESy -----END PGP SIGNATURE----- _______________________________________________ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon