in reply to Re^2: How to execute the perl program on different files in the same directory
in thread How to execute the perl program on different files in the same directory

I suggest allowing a command line argument of the wildcard to process. You can do taint checking (i.e. check to make sure this user isn't being malicious)

ARGV is an array of command-line arguments.

You could take this and pass it to glob

iterating on those results.

That should get you started on the right path :)
  • Comment on Re^3: How to execute the perl program on different files in the same directory