#! perl -slw use strict; my $re = qr[ # The end comment card ]x; # Ignore incidental spacing and comments in regex. my $html = do{ local $/; }; Grab the data from into a string my( $RID, $RTOE ) = $html =~ $re; # Execute the regex and assign the captures to variables. print "RID:$RID RTOE:$RTOE"; # Print the results. __DATA__ #### my $re = qr[ ]x;