|
|
От: |
butcher
|
http://bu7cher.blogspot.com |
| Дата: | 02.11.04 13:03 | ||
| Оценка: | |||
#!/usr/local/bin/perl
my $source = "before inline 123 test test 321 after inline";
my $inline = "| inline |";
my ($begin, $end) = (123, 321);
print "$source\n";
$source =~ s/($begin.+$end)/$inline/;
print "$source\n";