Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Sort and related stuff

by Tyke (Pilgrim)
on Feb 23, 2001 at 15:29 UTC ( [id://60465]=note: print w/replies, xml ) Need Help??


in reply to Sort and related stuff

When sort calls 'byVersion' it sets up $a and $b as package global variables. So these variables are used more than once -- when they are being set and when they are being used.

If you add the line

  use vars qw/$a $b/;
you 'declare' these variables as main package globals and you should get rid of the warning.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-19 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found