Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.lang.perl Subject: Re: here documents Message-ID: <7206@star.cs.vu.nl> Date: 1 Aug 90 03:59:48 GMT References: <7192@star.cs.vu.nl> <1990Jul31.013220.3903@iwarp.intel.com> Sender: news@cs.vu.nl Reply-To: maart@cs.vu.nl (Maarten Litmaath) Organization: VU Dept. of Computer Science, Amsterdam, The Netherlands Lines: 25 In article <1990Jul31.013220.3903@iwarp.intel.com>, merlyn@iwarp.intel.com (Randal Schwartz) writes: )In article <7192@star.cs.vu.nl>, maart@cs (Maarten Litmaath) writes: ^^ Something needs fixing, Randal. You provided another _workaround_, Randal. Furthermore just like my `&here' solution it involved _run-time_ processing of the here-document, whereas IMHO the final string (modulo variable substitutions etc.) should be found at _compile-time_. Therefore my request still stands: )| How about adding a `<<-' here document operator, which strips leading )| tabs and spaces off the lines forming the document? (And the line )| trailing the document.) Current practice in sh. Preserves indentation )| in the script. [...] )... )| print &here(<<" EOF"); Now why doesn't the following work as intended? print &here(<<"\tEOF"); -- "and with a sudden plop it lands on usenet. what is it? omigosh, it must[...] be a new user! quick kill it before it multiplies!" (Loren J. Miller)