Hi,
I want to check a perl program against a cetain checklist.
The checklist can be
1) if a perl script has 'use strict' in it.
2) There are no variables with the same name defined twice in the script.
3) To check if the loop condition is proper. i.e.incrementing operator and limit operator both are scalars.
etc.
What i can think at the moment is to parse the file line by line and use regex.
How do i go about this? Is there any module which can be used for the purpose?
Any suggestions are welcome.
--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
I want to check a perl program against a cetain checklist.
The checklist can be
1) if a perl script has 'use strict' in it.
2) There are no variables with the same name defined twice in the script.
3) To check if the loop condition is proper. i.e.incrementing operator and limit operator both are scalars.
etc.
What i can think at the moment is to parse the file line by line and use regex.
How do i go about this? Is there any module which can be used for the purpose?
Any suggestions are welcome.
--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.