in reply to assign array to hash

What are you trying to achieve with the regular expression:
([\S\s]+)
The doc says:
\s Match a whitespace character
\S Match a non-whitespace character
So, that would be the same as:
(.+)

        This is not an optical illusion, it just looks like one.

Replies are listed 'Best First'.
Re^2: assign array to hash
by choroba (Cardinal) on Apr 06, 2016 at 22:15 UTC
    There's a slight difference (I'm not sure whether that was the intent, though): . doesn't match a newline, unless used with the /s modifier, while \s matches it.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,