On Mon, Dec 11, 2000 at 07:57:23PM +0000, Amitava Basu wrote: > Hello Everyone > > I have downloaded a script which is supposed to work on > Windows and Unix. I am trying to configure it for running > on my Macintosh. > > The syntax shows okay. But when I run the script I get the > following error. It has something to do with "my" declaration. > > Thank you for the help. > > > Amitava Basu > > ########################################################### > # "my" variable $alias masks earlier declaration in same scope. > File 'LC 2:MacPerl ƒ:script.pl'; Line 251 This warning is exactly what it says. The script declared a variable with my, and then declared it again with my in the same scope. perldiag: "my" variable %s masks earlier declaration in same %s (W) A lexical variable has been redeclared in the current scope or statement, effectively eliminating all access to the previous instance. This is almost always a typographical error. Note that the earlier variable will still exist until the end of the scope or until all closure referents to it are destroyed. This is not specific to running the script in MacPerl; it's just a poorly written script that the author never tested with -w. You can turn off warnings, or remove the extra my declarations. Or download or write a better script. :) Ronald # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org