Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Using an array of file handles

by choroba (Cardinal)
on Apr 22, 2016 at 11:22 UTC ( [id://1161204]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1161204]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-23 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found