usefull ASCII line noise
#!/usr/bin/perl
$file = shift; if (! -e $file) {die("$! : $file\n")};
open (F, "<$file"); while (<F>) {$s .= $_;}
# find all variable names
@all = ($s =~ /\$[A-Za-z0-9_]+/g);
# make unique list
while (@all) { $t = pop(@all); $vars{$t}=1; }
print join("\n",keys(%vars));