Re: Recursive Validation Function

2013-09-02 Thread Jim Gibson
On Sep 2, 2013, at 6:23 PM, John Aten wrote: > Hello all, > > I am writing a script to rename files. The script prompts the user to enter > tokens which will comprise part of the file name. These are made of letters > and numbers separated by a dot, ie: R.3. The letters can be R, I or C, upper

Re: Recursive Validation Function

2013-09-02 Thread Andy Bach
On Monday, September 2, 2013, John Aten wrote: my $valid_token = validate_tokens($token); Too bad it doesn't work! Even if I put in valid tokens on the first shot, there are errors: You're passing the token as a parameter to the sub but the is using $_ for the match. You need to assign t

Recursive Validation Function

2013-09-02 Thread John Aten
Hello all, I am writing a script to rename files. The script prompts the user to enter tokens which will comprise part of the file name. These are made of letters and numbers separated by a dot, ie: R.3. The letters can be R, I or C, upper or lowercase. The first number can be one through eight