I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-06-24 13:27:42-07 by mgoldshteyn
Odds and ends
Well, I've started to use OIO heavily and noticed a few things.

First off, there's a typo in the SYNOPSIS for OIO. In line 16:
'Type' => 'numeriC',
The C in numeric is miscapitalized.

Second, and more importantly, I was looking at the list of available types and didn't see 'scalar' as a type that can be checked. Then, I had a look at the sample below the Field Type Checking heading, where you show that:
my @data :Field :Type(sub { ! ref($_[0]) }); :Acc(data)

Other than the fact that the semicolon looks misplaced in this and the next field, this also demonstrates that a test for whether a particular argument is a scalar or not is also useful. I can confirm that in fact, given that most fields are scalars, having a scalar type test would be great. Also,
:Type('scalar')
... is a lot easier to read than:
:Type(sub { ! ref($_[0]) });

Please reply with your thoughts.

Thanks,

Michael Goldshteyn
Direct Responses: 8147 | Write a response
Posted on 2008-06-24 15:03:43-07 by jdhedden in response to 8140
Re: Odds and ends
Thanks for the document corrections. I'll add them to the next release.

The 'scalar' type seems reasonable. I'll add it in. Thanks.
Direct Responses: 8156 | Write a response
Posted on 2008-06-24 17:24:35-07 by jdhedden in response to 8147
Re: Odds and ends
'scalar' type checking added to OIO 3.43 which I just uploaded to CPAN. Enjoy.
Direct Responses: Write a response