Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 1999 01:23:19 +0100
From:      Olaf Hoyer <ohoyer@fbwi.fh-wilhelmshaven.de>
To:        freebsd-chat@freebsd.org
Subject:   Re: Un*x scripting magic
Message-ID:  <4.1.19990225010419.009bed10@mail.rz.fh-wilhelmshaven.de>
In-Reply-To: <Pine.OSF.4.21.0004171843020.30502-100000@fly.HiWAAY.net>

next in thread | previous in thread | raw e-mail | index | archive | help
At 18:56 17.04.00 -0500, you wrote:
>Hi all,
>
>A have a chunk of perl code something like this.
>
>  # insert bunch of code here
>
>    my $msg <<EndOfMessage;
>%%MESSAGE%%
>EndOfMessage
>
>  # more code goes here
>
>Then I have a multi-line (printable characters only) ASCII
>text file containing the message that I'd like to replace
>for %%MESSAGE%%. [1]  Anyone have a neat little trick in
>their bag-o-magic?  I know the answer should be really
>obvious but everything I've tried thus either hasn't worked
>or was too convoluted.
>
Hi!

Well, from my limited Java experience (begun courses this year) two ideas
came to mind:

Is it possible to read it in from a text file, or defined in the beginning
of the source code, or a dedicated subroutine?

Then I'd put this into a string or array long enough to handle that,
perhaps even split it into several substrings of its too long...

Regards
Olaf Hoyer
--------
Olaf Hoyer	 www.nightfire.de                mailto:Olaf.Hoyer@nightfire.de
FreeBSD- Turning PC's into workstations   ICQ:22838075

Liebe und Hass sind nicht blind, aber geblendet vom Feuer,
dass sie selber mit sich tragen. (Nietzsche)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.1.19990225010419.009bed10>