Problems with on-error?

[email protected]
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
Howdy,

I've run into what looks like a problems with the on-error directive
in Petal 2.17.  Given the following input (straight from the Petal documentation):


  <p petal:on-error="string:Cannot access object/method!!">
  $object/method

  </p>

Petal produced the following output:

  string:Cannot access
object/method!!

It looks as if Petal is treating the argument to on-error
as a simple string rather than as an expression, so the string: modifier shows
up in the text.

  $ perl -MPetal -e 'print $Petal::VERSION, "\n"'
  2.17


-- Lars
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.