http://www.perlmonks.org?node_id=1044721


in reply to giving spaces

hey anyone the escape sequence of space ?

Replies are listed 'Best First'.
Re^2: giving spaces
by Skeeve (Parson) on Jul 17, 2013 at 08:54 UTC
    \x20

    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
Re^2: giving spaces
by dsheroh (Monsignor) on Jul 17, 2013 at 08:57 UTC
    Under most circumstances, spaces don't need to be escaped. Just use a literal space.

    In the few cases where it does need to be escaped, the appropriate escape sequence depends on which case you're dealing with, so there's no single, universal answer. You'll need to specify the context in which you're escaping the space.