in reply to Subroutines with Parameters

> I could not find a subroutine example online to see the correct format.

That's hard to believe! :)

Putting your headline into google leads to plenty of hits, among them perlsub

example:

sub extract{ my ($filename, $filepath, $regex) = @_; # do stuff }

Cheers Rolf

( addicted to the Perl Programming Language)