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).

In reply to Re: Re: Re: Service controller for Linux/Unix by Fastolfe
in thread Service controller for Linux/Unix by jjhorner

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":