Skip to content

Instantly share code, notes, and snippets.

@mattn
Created May 11, 2010 04:52
Show Gist options
  • Save mattn/396933 to your computer and use it in GitHub Desktop.
Save mattn/396933 to your computer and use it in GitHub Desktop.
package MyFinger;
use Filter::Simple;
FILTER_ONLY
code => sub {
s/(\$[a-zA-Z][a-zA-Z0-9]*\s*)☞/\1->/msxg;
s/([a-zA-Z][a-zA-Z0-9]*\s*)☛/\1=>/msxg;
};
1;
use strict;
use warnings;
use MyFinger;
my $foo = {
bar ☛ "baz"
};
warn $foo☞{bar};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment