use warnings;
use strict;
my $str = < But
whereas boundaries were once relatively easy to identify, they are becoming
increasingly complicated and hard to pin down. Consider the simple case of a
small neighborhood grocery that includes a retail customer area, a storage room,
and an owner/managers office. In many ways, the
stores boundary coincides with its physical structure: When you walk
through the door, youre crossing the boundary into the business, and when
you go back onto the sidewalk, you cross the boundary back into the
environment.See Waren J. Keegan, Global Marketing
ManagementSee James J. Kellenberger, Global Warming
Management
TEXT
my @footnotes;
push @footnotes, [$1, $2] while $str =~ m|((?:(?!).)*)|gms;
$str =~ s|
[0]\E"/>
|
[1]<\/para><\/footnote>
|gxms
for @footnotes;
print $str;