in reply to McAfee False Positive

Not quite sure that you are trying to do, but in Perl, $0 normally means the name of the executing program,
#!/usr/bin/perl use warnings; use strict; print "$0\n"; __END__ prints: C:\TEMP\dollar0.pl
If you try to open $0 for writing, this will cause some problems! Maybe you are trying to get the command line args to your program and there are ways to do that. Update: I recommend using "warnings" and "strict" as I have shown above.

Replies are listed 'Best First'.
Re^2: McAfee False Positive
by SavannahLion (Pilgrim) on Apr 08, 2010 at 12:59 UTC

    I want the name of the executing program. I'm trying to use the hash to generate skeleton functions for the hash itself. If you note I open two files. One is $0 to read itself and one is $0.new for the output.

    I removed an entire previous section that McAfee wasn't balking at. It contains program setup including hash construction and unrelated functions. Also included, but I completely forgot to include here are the strict and warnings. They're there, I just didn't include them here. Sorry about that.