in reply to need to consolidate two lines to one

$string = "hello"; $string =~ /^\s+|\s$/g;

It's a lot easier than it's made out to be this programming lark.