Postman Pat wrote: > > $_=~s/\n//msg; > > What does the above match?
That matches the newline character (\n) globally (/g) and replaces it with nothing. The /m option is not needed because the ^ and $ anchors are not used and the /s option is not needed because there is no . in the regular expression and the $_ variable and binding operator are not needed because s/// is bound to $_ by default. So, to sum up, that expression can be written more simply as: s/\n//g; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]