more useful options | |
PerlMonks |
Validating ISBN numbers?by gant (Initiate) |
on Dec 17, 2002 at 17:34 UTC ( [id://220590]=perlquestion: print w/replies, xml ) | Need Help?? |
gant has asked for the wisdom of the Perl Monks concerning the following question:
Hows it goin, i'm goin a project where i have to use validation rules..which is fair enough but i am havin problems with validating aN ISBN. This has to be: The ten-digit number is divided into four parts of variable length, which must be separated clearly by hyphens or spaces: ISBN 0 571 08989 5 or ISBN 90-70002-34-5 Note: Experience suggests that hyphens are preferable to spaces. The number of digits in the first three parts of the ISBN (group identifier, publisher prefix, title identifier) varies. The number of digits in the group number and in the publisher prefix is determined by the quantity of titles planned to be produced by the publisher or publisher group. Publishers or publisher groups with large title outputs are represented by fewer digits.
I would be grateful for any help. update (broquaint): title change (was CGI -Perl problem) and added formatting
Back to
Seekers of Perl Wisdom
|
|