我在perl脚本上收到以下服务器错误:
来自脚本的格式错误的标题 错误的标头=:youtube_perl.pl,
这是我的源代码:
#!"C:\XAMPP\perl\bin\perl.exe" -T
use strict;
use warnings;
use CGI;
use CGI::Carp qw/fatalsToBrowser/;
use WWW::Mechanize;
my $q = CGI->new;
my $url = 'http://www.youtube.com';
my $mechanize = WWW::Mechanize->new(autocheck => 1);
$mechanize->get($url);
my $page = $mechanize->content();
print $page;
Run Code Online (Sandbox Code Playgroud)
提前致谢!
我正在尝试在XAMPP上使用cpan安装模块.我正在运行Windows 7.
在给出此提示后立即:
CPAN.pm:要构建J/JE/JESSE/HTTP-Server-Simple-0.43.tar.gz
它提示"找不到所需的nmake可执行文件,并尝试获取它.
在此之后,会出现一个弹出窗口,指出由于与64位版本的Windows不兼容,程序"\ ??\c:\ xampp\perl\bin\Nmake15.exe无法运行".
我下载了VC++并将make.exe从该安装复制到我的perl/bin中以替换原来的make.exe.这仍然无效.知道如何使用CPAN进行安装吗?
这是我的代码片段:
<div class="totals">
<table id="shopping-cart-totals-table">
<col />
<col width="1" />
<tfoot>
<tr>
<td style="" class="a-right" colspan="1">
<strong>Grand Total</strong>
</td>
<td style="" class="a-right">
<strong><span class="price">$364.99</span></strong>
</td>
</tr>
</tfoot>
<tbody>
<tr>
<td style="" class="a-right" colspan="1">
Subtotal </td>
<td style="" class="a-right">
<span class="price">$354.99</span> </td>
</tr>
<tr>
<td style="" class="a-right" colspan="1">
Shipping & Handling (Flat Rate - Fixed) </td>
<td style="" class="a-right">
<span class="price">$10.00</span> </td>
</tr>
</tbody>
</table>
Run Code Online (Sandbox Code Playgroud)
有没有办法选择显示"$ 10.00"的范围?也许选择元素的第二次出现?IE:第二次出现".totals table tbody tr td [colspan ='']"?
我可以在同一个文件中包含jQuery和AJAX吗?这会发生冲突吗?
我试图将jQuery包含在Magento GO模板中,但是当我上传并在模板中包含jQuery时,下拉菜单/等等.停止工作.所有链接仍然可以正常工作,但下拉菜单和其他类似功能停止工作...
我相信这可能是因为Magento在托管解决方案中包含了AJAX ......?