On Nov 9, 2007 6:44 PM, Paul Lalli <[EMAIL PROTECTED]> wrote:
> You should have tried the FAQ first.

I should. Well, I did, but I should have realised that this question
was not specific to subroutine names.

In any case, I feel rather stupid for asking my question now.
Re-reading the code of the module I needed to use, there is a
work-around for my question. My sincere apologies for that.

Thanks for answering my question though, as I do agree with you that
using numeric indices in variable names is a very bad thing to do and
should be avoided by all means. I suppose it's a good thing to be
reminded of every once in a while.

(FYI, the module I was talking about validates form-input on a
website, by defining a subroutine validate_foo which validates the
input of the input-field named 'foo'. I had a list of text fields of
arbitary length and couldn't see another way of naming my subroutines.
Until I found that is a work-around built in that, indeed, uses an
array.)

Martijn.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to