in reply to Any idea what this does

Is this a quiz?

The regex, itself, is an example of an IEEE Std 1003.1, also known as POSIX character class syntax; see perlre, which states [:print:] is "Any alphanumeric or punctuation (special) character or the space character." The [^] syntax is normal regex syntax, so in this case, the regex will return true if any character which is not in the list of what [:print:] considers "printable" is found either array element.

The @{...}...appears to be an (possibly incorrectly written) dereferencing; I don't think it's relevant to the question.

emc

Any New York City or Connecticut area jobs? I'm currently unemployed.

There are some enterprises in which a careful disorderliness is the true method.

—Herman Melville

Replies are listed 'Best First'.
Re^2: Any idea what this does
by ysth (Canon) on May 29, 2007 at 18:44 UTC
    The @{...}...appears to be an (possibly incorrectly written) dereferencing; I don't think it's relevant to the question.
    Since the anonymous OP didn't say, it's not possible to know which part wasn't understood. It's quite possible the OP threw up his/her hands in bewilderment at the whole thing, without even trying to break it down into pieces.

    The @{} is correct (in that it does what was presumably intended), just poorly written. It is a one-element slice in scalar context, where a simple array element would have done.