[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Using << to make a long string



I am creating a CGI and embed a javascript within my Perl code.  I want to
set the javascript to a variable by the name of $script.  I run the
following code:

$script = <<EOS

<I put my javascript in here>

EOS

MacPerl gives my the following error:

# Can't find string terminator "EOS" anywhere before EOF.
File '<AppleEvent>'; Line 22

I have run the javascript on its own and it is errorfree, and I know that
this syntax works on a UNIX box, although I have not had a chance to try
this with my code specifically.  Is this a problem with MacPerl or am I
missing something?

Please help.

Thanks.

      ,,,,,
      /'^'\
     ( o o )
-oOOO--(_)--OOOo------------------------------------------------
                                           Jon Jacob
                                       xaviermoon@earthlink.net

  .oooO                                              541.488.8503
  (   )   Oooo.                                 Ashland, OR
---\ (----(   )-------------------------------------------------
    \_)    ) /
          (_/




***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch