Darryn Parker wrote:
> I wish to create a private list. I know what "noadvertise" and "advertise"
> do but the following line in my test.config file has no effect
>
> noadvertise /.*/ << END
>
> whats' wrong?
Lines that are of the form
command <<END
blah
blah2
blah3
END
will execute "command" on all of the input up to (but not including) the
'END' marker.
It's very common practise to use these in sh scripts, but you can also
do it in perl:
#!/usr/bin/perl
print <<DCL;
hi
this is cool
DCL
print "Done\n";
will print 3 lines:
hi
this is cool
Done
(Note: in Perl there can be no space between the '<<' and the marker.)
Daniel
--
Daniel C. L'Hommedieu
dcl@explore.com
Network Systems Technician
Follow-Ups:
References:
|
|