Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
It's nice that I didn't use HERE DOCUMENTS syntax for strings.. As you can see from the sample, writing parser that will extract strngs from components would be non-trivial. Have anybody did anything like this before? Do you have any ideas how to implement it? Googling does not help much.. Thanks for your suggestions in advance!% my $c = __('Activity report'); #needs extracting <div> <%perl> $c = __('Another string'); #needs extracting </%perl> <% __('Browsing report:') %> <!-- needs extracting --> <% $c %> </div>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to extract strings from HTML::Mason components?
by Corion (Patriarch) on Dec 12, 2008 at 09:04 UTC | |
by Anonymous Monk on Dec 12, 2008 at 10:07 UTC | |
|
Re: how to extract strings from HTML::Mason components?
by Fletch (Bishop) on Dec 12, 2008 at 14:34 UTC | |
|
Re: how to extract strings from HTML::Mason components?
by jeffa (Bishop) on Dec 12, 2008 at 15:41 UTC | |
by Anonymous Monk on Dec 13, 2008 at 10:53 UTC |