[Canberra-pm] here document perl script
James Ring
sjr at jdns.org
Thu Jun 8 18:21:00 PDT 2006
Hi Kim,
> I want to put a here document fragment of perl in a shell script.
> I'm sure I've done something like this before but I can't get it to
> work. Anyone got any ideas?
>
> #!/bin/sh
>
>
> /usr/bin/perl -e -- <<EOP
The stuff between <<EOP and EOP will be passed into Perl's standard input,
so you don't need the -e. I think this works:
/usr/bin/perl - <<EOP
> Kim Holburn
Regards,
James
--
James Ring
More information about the Canberra-pm
mailing list