I am looking to extract javascript's from a string like the example below. I know there are several modules out there that will do this, but this is not an option for me.
my $variable = qq|
<html>
<head>
<title>test</title>
<script language="javascript">
alert('welcome');
</script>
<script language="javascript">
document.write('hello');
</script>
</head>
<body color="000000">
blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah
</body>
</html>
|;
Needs to be left with - to be parsed later on
<script language="javascript">
alert('welcome');
</script>
<script language="javascript">
document.write('hello');
</script>
Thank you in advance...
M. Brooks
X Concepts LLC
my $variable = qq|
<html>
<head>
<title>test</title>
<script language="javascript">
alert('welcome');
</script>
<script language="javascript">
document.write('hello');
</script>
</head>
<body color="000000">
blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah
</body>
</html>
|;
Needs to be left with - to be parsed later on
<script language="javascript">
alert('welcome');
</script>
<script language="javascript">
document.write('hello');
</script>
Thank you in advance...
M. Brooks
X Concepts LLC