Hello,

is there some kind of parser for perl source ? Lets we have for
example this message as the source (input), I'd like to have all
valid perl lines in variable.

#!/usr/bin/perl -w
use strict;

my $something = 2000;
for (0 .. $something) {
    print $something, "\n";
}
__DATA__
this line too
__END__


is that possible ? (script shouldn't start with #!, it could
start "$start = 'here';", or for loop and shouldn't end with
__END__

just finding out, if this possible.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to