in reply to File rewrite question

I don't see anything other than what borisz said and you might want to change the regular expression in your substitution to be a little more strict

$returned_param =~ s/\d//g; # what you have now $returned_param =~ s/\d+$//; # what I think you might want ins +tead

Mine only gets rid of a run of digits at the end rather than those that may appear in the middle of the name. This mayn't be a problem with your data set, but a good programmer is a paranoid programmer :-)

Replies are listed 'Best First'.
Re: Re: File rewrite question
by Anonymous Monk on Jan 09, 2004 at 19:39 UTC
    The strange thing is that I've modified the script slightly to return the data that it is getting from the CGI query and everything is fine--my regex works (although I think yours is better), the data isn't multivalued, etc.

    Hmmm...
    --TWH