Patrick Spinler wrote: [...] Two notes to make this work: > > 1) Use the "-" argument to perl, which says take script from stdin.
No, you can just say "perl" here. > Note that this _must_ be followed by some other argument, or DCL assumes > it is a line continuation. > > 2) (I'm uncertain about this, but) there may be some magic associated > with using __END__ as the /DOLLARS to DECK. Perl may actually interpret > this as end of script in some way ? > You can feed any text to Perl via "perl -x foo.txt" and it'll skip up to the shebang line (#! perl) and take the rest as code to be executed until it hits __END__. So I use __END__ in .com files so I can execute the perl code directly if I want. Brad
