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
}
I get this error:
dark314@chavez:~/boxes/scripts/csl-ldap-01$ ./ldapadmin -help
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:
print "
//paste help text here which was copied
";
but i know this is a bad approach and im sure it doesn't work.