Ask a Question related to PERL Modules, Design and Development.
-
Robby Walker #1
Module submission: REV
Hi,
I've written a mini programming language called REV for data
validation. REV stands for Really Easy Validation - and is a language
similar to Perl that can be compiled to Perl, PHP, and JavaScript.
(with more languages on the way) The idea is to write validation code
only once and then compile it to JavaScript and to your server side
language. The language itself is pretty powerful. For example:
error("Please specify a username") if empty <username>;
error("Please specify a valid email address") unless @ <email>;
These are the most basic types of statements - they check a given form
field (variables in <>) for a specific condition - if it is empty or if
it is an email (the @ operator). Lots of other data type checks are
available. You can also create temporary variables and use constructs
like loops. Consider a form that uses JavaScript to allow you to add
many email addresses to a mailing list. (i.e. you can click on 'Add
Another Address' and you get another text box) Then, assuming your
JavaScript keeps updating a form field called 'maxIndex' you can use
the following code for validation:
error("Please specify at least one email address"0 unless <maxIndex> >
0;
for i ( 1..<maxIndex> ) {
error("Please specify a valid email address in box #" _ i) unless @
<email${i}>
}
The compiler is written in Perl and I would like to register the
namespace REV for this module - but of couse I understand the
difficulties involved with top level namespaces. Does anyone object to
this namespace? Or suggest a different one? I'd also like to register
Template::Plugin::REV for generation of JavaScript validation functions
using Text::Template.
For more information you also might visit
rev-validation.sourceforge.net - the current source code is there as
well.
Thanks,
Robby
Robby Walker Guest
-
Module Submission: Regexp::MultiLanguage
I'm working on a project where I need to use a set of common regular expressions in more than one programming language. To facilitate this, I've... -
Submission Form?
Hi, I am trying to create a submission form that, after hitting the "submit" button, is automatically sent to a specified e-mail address. I tried... -
Submission Pages
Hi, does anyone know of any tutorials on how to create submission pages? I want to create a page where a user can enter their details and upload... -
Free Submission
Hi, I'm looking free free submission to Russian searchengines. Can you help me. Thanx in advance. -- www.selentia.de -
Submission of reproducable bug
Could I get a response possibly from the MS team as to the best way to report a reproducable bug? I have as simple form which can be reproduced... -
Robby Walker #2
Re: Module submission: REV
> error("Please specify at least one email address"0 unless <maxIndex> >
Please forgive my typo here - the first line should read> 0;
> for i ( 1..<maxIndex> ) {
> error("Please specify a valid email address in box #" _ i) unless @
> <email${i}>
> }
error("Please specify at least one email address") unless <maxIndex> >
0;
Thanks again,
Robby
Robby Walker Guest
-
Sherm Pendley #3
Re: Module submission: REV
"Robby Walker" <robby.walker@gmail.com> writes:
How about Compiler::REV?> The compiler is written in Perl and I would like to register the
> namespace REV for this module - but of couse I understand the
> difficulties involved with top level namespaces. Does anyone object to
> this namespace? Or suggest a different one?
That sounds about right to me.> I'd also like to register
> Template::Plugin::REV for generation of JavaScript validation functions
> using Text::Template.
sherm--
--
Cocoa programming in Perl: [url]http://camelbones.sourceforge.net[/url]
Hire me! My resume: [url]http://www.dot-app.org[/url]
Sherm Pendley Guest
-
Robby Walker #4
Re: Module submission: REV
Sherm Pendley wrote:I like Compiler::REV - although there don't appear to be other> "Robby Walker" <robby.walker@gmail.com> writes:
>>> > The compiler is written in Perl and I would like to register the
> > namespace REV for this module - but of couse I understand the
> > difficulties involved with top level namespaces. Does anyone object to
> > this namespace? Or suggest a different one?
> How about Compiler::REV?
Compiler::* modules. So that would be a new root level suggestion too!
In fact, the only things I've seen have been the PHP and JavaScript
root level namespaces - hence my original choice. Thoughts?
Thanks!
- Robby
Robby Walker Guest
-
harryfmudd [AT] comcast [DOT] net #5
Re: Module submission: REV
Robby Walker wrote:
What about the Language:: namespace? It appears to contain Basic and> Sherm Pendley wrote:
>>>>"Robby Walker" <robby.walker@gmail.com> writes:
>>
>>>>>>>The compiler is written in Perl and I would like to register the
>>>namespace REV for this module - but of couse I understand the
>>>difficulties involved with top level namespaces. Does anyone object to
>>>this namespace? Or suggest a different one?
>>How about Compiler::REV?
>
> I like Compiler::REV - although there don't appear to be other
> Compiler::* modules. So that would be a new root level suggestion too!
> In fact, the only things I've seen have been the PHP and JavaScript
> root level namespaces - hence my original choice. Thoughts?
>
> Thanks!
>
> - Robby
>
Haskell, as well as less-serious entries such as Brainf**k and Ook.
I have never tried to establish a top-level namespace. Once upon a time
you had to jump through hoops to get any kind of namespace registered,
but it seems to be easier now.
Tom Wyant
harryfmudd [AT] comcast [DOT] net Guest



Reply With Quote

