in reply to How to escape square bracket in PM?

Use the HTML entities encoded form:

Update: Here's a one-liner that will help you to figure out what the HTML entities are for particular characters. It's easy to tinker to test other symbols too:

perl -MHTML::Entities -e "print qq/$_\t/, encode_entities( $_, $_ ), $/ for split //, shift" "[]<>" __OUTPUT__ [ &#91; ] &#93; < &lt; > &gt;

Beware shell interpretation of the symbols you test. ;)


Dave

Replies are listed 'Best First'.
Re^2: How to escape square bracket in PM?
by ikegami (Patriarch) on Apr 12, 2005 at 17:23 UTC

    When I'm feeling lazy in the ChatterBox, I use "[[]" for "[". For example, "[[]test]" gives "[test]". "]" doesn't need escaping, with or without this trick.

    Update: Oops, this should have been a reply to the OP.