ripley@tubopal.UUCP (Hans-Ch. Eckert) (08/17/90)
Finally I got perl for my ST (thanks, Edgar!), so I could prepare the reference-guide (thanks, Johan!). A friend showed me Ultrascript and I took the opportunity to print the reference-guide. It really looks nice, even though the ribbon of my P6 isn't new :-) I just reformatted the man-page to safe paper so I hope I can join the perl-community soon! BTW: Has anybody an idea how to make a gulam-wrapper for perl-scripts? The "#!" doesn't work and gulam is neither a Bourne-shell nor a real csh. Greetings, RIPLEY -- Greetings from RIPLEY | UUCP: ripley@tubopal.UUCP (ripley@opal.cs.tu-berlin.de) Hans-Christian Eckert | ...!unido!tub!opal!ripley (Europe) D-1000 Berlin 30 | ...!pyramid!tub!opal!ripley (World) Regensburger Str. 2 | BITNET: ripley%tubopal@DB0TUI11.BITNET (saves $$$)
ripley@opal.cs.tu-berlin.de (Hans-Ch. Eckert) (08/24/90)
In article <1711@troll.tubopal.UUCP> ripley@tubopal.UUCP (Hans-Ch. Eckert) writes:
BTW: Has anybody an idea how to make a gulam-wrapper for perl-scripts?
The "#!" doesn't work and gulam is neither a Bourne-shell nor a real csh.
I got a mail from Edgar who suggested:
In Gulam:
alias eval $1
Inside the Perl script:
#!perl
eval "perl -S $0 $*"
if $running_under_some_shell;
This doesn't work for several reasons, but a little experimenting
revealed this:
In gulam:
alias exec ' '
The Perl script (test.g):
--
exec perl $*
if $running_under_some_shell;
print "This is test.pl,\nPerl $]\n";
--
Which works fine.
Greetings,
RIPLEY
--
Greetings from RIPLEY | UUCP: ripley@tubopal.UUCP (ripley@opal.cs.tu-berlin.de)
Hans-Christian Eckert | ...!unido!tub!opal!ripley (Europe)
D-1000 Berlin 30 | ...!pyramid!tub!opal!ripley (World)
Regensburger Str. 2 | BITNET: ripley%tubopal@DB0TUI11.BITNET (saves $$$)