Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: simple to describe I/O problem

by AnomalousMonk (Archbishop)
on Sep 01, 2014 at 19:46 UTC ( [id://1099190]=note: print w/replies, xml ) Need Help??


in reply to Re: simple to describe I/O problem
in thread simple to describe I/O problem

if ($fh->open("$file","<")) { ... }

Why does the string  $file have to be interpolated into another string  "$file" before being passed to the open method?

Replies are listed 'Best First'.
Re^3: simple to describe I/O problem
by Anonymous Monk on Sep 01, 2014 at 20:04 UTC
    It doesn't, "$file" was just a remnant of (too) quickly editing the OP's code. (Unless maybe $file is an object with overloaded stringification; but then it'd probably be stringified inside open...)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-03-28 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found