Mailing List Archive

shorthand for disabling escaping?
In http://perl.apache.org/embperl/pod/doc/Embperl.-page-5-.htm#sect_20
it says:

NOTE: Normaly [sic] you can disable escaping by preceeding the item
that normaly [sic] is escaped with a backslash.

but these don't seem to work:

\[+$markup+]
[+\$markup+]

It would be nice to have something simpler than:

[+do{local $escmode=0; $markup}+]

Is there?

-mda

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: shorthand for disabling escaping? [ In reply to ]
>
> In http://perl.apache.org/embperl/pod/doc/Embperl.-page-5-.htm#sect_20
> it says:
>
> NOTE: Normaly [sic] you can disable escaping by preceeding the item
> that normaly [sic] is escaped with a backslash.
>
> but these don't seem to work:
>
> \[+$markup+]
> [+\$markup+]
>
> It would be nice to have something simpler than:
>
> [+do{local $escmode=0; $markup}+]
>
> Is there?
>

The backslash is for inside the content i.e.

[-

$markup = '\<xxx\>' ;

-]
[+ $markup +]

And this only work when escmode is set to 3 (instead of the default of
7)

Sorry, there is no other shortcut (of course you can wrap it with a [$
sub $] )

Gerald


** Virus checked by BB-5000 Mailfilter **

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org