#!/usr/bin/perl $FILE = "this is my file, i'm going to want this value later\n"; print $FILE; require('./varstruct.pl'); print $FILE; &VARSTRUCTOR('show', 'E: subs(VARSTRUCTOR)', './varstruct.pl'); # Test print $FILE;
...if the code I want to analyze has an array that's not initalized with "=" or used in a "push" call, then your function doesn't find it? That hardly sounds like "Perl's reset function, with extra features"# # # Extract scalars and arrays. If not an array used in push, require +an equals sign. # while (($FILE =~ s/([^\\]|[^\\]\\\\)([\@\$][^\d\W]\w*(\[.*?\])?)\s*= +//)|| # ($FILE =~ s/push[^\w_]*([^\\]|[^\\]\\\\)(\@[^\d\W]\w*)//)) #
...there's a lot of other little things about this code that scare me, but i'm too tired to keep iterating over them. the more i look at it, the more depressed i get.
In reply to Re: Re: Re: Re: Re: VarStructor 1.0
by hossman
in thread VarStructor 1.0
by Wassercrats
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |