The easiest way to fix the use strict issues without changing any other code is to remove both of the my declarations, and to the top of both files add use vars qw($pie).
Under strict, use vars is how you declare global variables. my declares lexically scoped variables, and the $pie inside getpied is a completely different variable that happens to have the same name.
In reply to Re: 'use strict;' between libraries
by sgifford
in thread 'use strict;' between libraries
by Massyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |