in reply to Re: Re: Service controller for Linux/Unix
in thread Service controller for Linux/Unix

You're right; I had intended to write something more like this:
my ($action) = $0 =~ m!([^/]+)$!;
Either way, you figured it out. I usually prefer the one-line form like this, because with the two-line form, if the regex fails, an assignment to $1 might get you something you do not expect (the results from a previous regex, for example).