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

Re: what is bad about this?

by runrig (Abbot)
on Feb 06, 2006 at 21:36 UTC ( [id://528340]=note: print w/replies, xml ) Need Help??


in reply to what is bad about this?

Because if you're following good practices and using strict and warnings, changing that line is the easiest way to "fix" the warning? (But then you'll probably have to fix a few "Global symbol" errors also).

Replies are listed 'Best First'.
Re^2: what is bad about this?
by ikegami (Patriarch) on Feb 06, 2006 at 21:41 UTC

    What are you talking about?

    Neither
    $IP_ADDRESS = @REALM[1];
    nor
    $IP_ADDRESS = $REALM[1];
    generates a warning.

    And strict is not relevant. If one generates a strict fault, so will the other. If one doesn't generate a strict fault, neither will the other.

      Maybe it's a new warning? (From 5.8.4):
      Scalar value @REALM[1] better written as $REALM[1] at ...
      Also, I'm just guessing the OP is using neither strict nor warnings. If he was using warnings, he'd be getting a warning and probably fixing it, and he'd probably already be using strict. If he does start using strict and warnings, then I bet there will be a bunch of errors to fix (and a good chance that either version of that line will need to be fixed).

        No, my fault. The warning is present in 5.6.1.

        Reminder to self: Verify before contradicting someone!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-26 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found