Yes, this works. I've used the technique to write documented lists:
my @items = map { /^=item (.*)/ ? $1 : () } split /\n/, <<'=cut'; =begin =over 4 =item Hello The first item must always be C<Hello> =item World The second item must always be C<World> =back =cut print "Items: @items\n";
In reply to Re^2: Putting comments in an object
by Corion
in thread Putting comments in an object
by rastoboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |