my $foo = "'stuff in quotes'"; $foo =~ /'(.*)'/ and $foo = $1; print $foo;