Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Net::Netmask not working with scalar variable

by Anonymous Monk
on Oct 10, 2010 at 19:31 UTC ( [id://864508]=note: print w/replies, xml ) Need Help??


in reply to Re: Net::Netmask not working with scalar variable
in thread Net::Netmask not working with scalar variable

open is read only when mode is omitted. The 3 argument form of open is considered better practice:

open(my $fh, '<', "input.txt") or die $!

There is no reason to place a variable in double quotes unless you're interpolating it into a string, so the original poster's code was perfectly fine. To affect the symbol table you'd place 2 colons between barewords; like when you use a module or declare a package.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-16 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found