in reply to Re: Re: syntax check from within perl
in thread syntax check from within perl
Consider:
#!/usr/bin/perl BEGIN { print "rm -rf /" }
Guess what happens when you run perl -c on this.
Now just imagine if that weren't just a print statement...
Update: I thought it was discussed here before, but I can't seem to find where. IIRC, the verdict was, basically, that there's just not a way to get arbitrary code syntax checked w/o (at least the possbility of) running some of it.
bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: (bbfu) (perl -c runs code) Re3: syntax check from within perl
by merlyn (Sage) on Mar 02, 2002 at 08:00 UTC | |
|
Re: (bbfu) (perl -c runs code) Re3: syntax check from within perl
by Anonymous Monk on Mar 02, 2002 at 07:30 UTC | |
by bbfu (Curate) on Mar 02, 2002 at 07:35 UTC |