Home | Geschichten | Kunst | Computer | Tindertraum |
#!/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));
[ by Martin>] [permalink] [similar entries]
similar entries (vs):
similar entries (cg):