This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| my $data; | |
| {local $/=undef; $data = <DATA>}; | |
| if ($data =~ /MATCH_ME/){ | |
| print "Found MATCH_ME at Line number: "; | |
| my ($line_num) = (substr $data, 0, $-[0]) =~ s{$/}{}g + 1; | |
| print "$line_num"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Testing IE Compatibility Mode</title> | |
| <script src="ieUserAgent.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <div id="results">Results:</div> | |
| <script type="text/javascript"> | |
| var val = "IE" + ieUserAgent.version; |
NewerOlder