in reply to Help with regexp to capture quotes

sub get_arg { shift =~ /="?([^="])/; $1; }
or, in two steps
sub get_arg { my ($x) = shift =~ /="?([^="])/; $x =~ tr/"'//; $x; }

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.