Rosetta Code/Fix code tags: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
povray c gettext); |
povray c gettext); |
||
my $ |
my $text = join "", <STDIN>; |
||
⚫ | |||
my $text = do { local $/; <STDIN> }; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
$text =~ s|<code (.+?)>(.*?)</code>|<lang \1>\2< |
$text =~ s|<code (.+?)>(.*?)</code>|<lang \1>\2</lang>|sg; |
||
print $text; |
print $text; |