dark314 has asked for the wisdom of the Perl Monks concerning the following question:
solution
im sorry, my script is so long, the error is from another place, the tags do work alone. Thanks for your help, and again i apoligize.
at the end of my script was something like...sub help { //the rest of the code was gone, because i had copied and pasted to th +e top of the script.
UPDATE: It doesnt work for me (EOF tags)
sub help() { print <<"EOF"; Possible Starting Arguments for ldapadmin: blah blah EOF }
Missing right curly or square bracket at ./ldapadmin line 896, at end of line
syntax error at ./ldapadmin line 896, at EOF
Execution of ./ldapadmin aborted due to compilation errors. sorry if this seems very easy, but its bugging me because I know there should be some better way of doing it.
ok, so heres the deal: I have a textfile, with tabstops in it, its a helpfile for a script of mine which is written in, you guessed it, perl. Originally I had the perl script make a system call to cat <name of file> but given the small size of the script, i'd rather it inside the script, perhaps in a subroutine called help(), i was thinking of adding something like this:
but i know this is a bad approach and im sure it doesn't work.print " //paste help text here which was copied ";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: inserting a formatted text file into a perl script.
by Hue-Bond (Priest) on Aug 03, 2006 at 23:14 UTC | |
Re: inserting a formatted text file into a perl script.
by GrandFather (Saint) on Aug 03, 2006 at 23:20 UTC | |
by VSarkiss (Monsignor) on Aug 04, 2006 at 14:03 UTC | |
Re: inserting a formatted text file into a perl script.
by planetscape (Chancellor) on Aug 03, 2006 at 23:45 UTC | |
Re: inserting a formatted text file into a perl script.
by GrandFather (Saint) on Aug 03, 2006 at 23:51 UTC | |
Re: inserting a formatted text file into a perl script.
by Magius_AR (Sexton) on Aug 03, 2006 at 23:28 UTC | |
Re: inserting a formatted text file into a perl script.
by starbolin (Hermit) on Aug 04, 2006 at 06:37 UTC | |
Re: inserting a formatted text file into a perl script.
by Magius_AR (Sexton) on Aug 04, 2006 at 00:14 UTC |
Back to
Seekers of Perl Wisdom