in reply to Using an array of file handles

This behaviour is documented in perlop:

> If what's within the angle brackets is neither a filehandle nor a simple scalar variable containing a filehandle name, typeglob, or typeglob reference, it is interpreted as a filename pattern to be globbed, and either a list of filenames or the next filename in the list is returned, depending on context.

($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,

Replies are listed 'Best First'.
Re^2: Using an array of file handles
by Laurent_R (Canon) on Apr 22, 2016 at 12:21 UTC
    Thank you choroba, yes, I more or less knew that, but I thought that enclosing the array item between curlies was enough to solve the issue. I was obviously wrong on that.

    I've used this syntax with curly brackets for writing to filehandles, quite obviously not for reading from a filehandle, contrary to what I thought to remember.