由买买提看人间百态

topics

全部话题 - 话题: activeperl
1 (共1页)
e*******g
发帖数: 46
1
来自主题: BuildingWeb版 - [转载] 呵呵。询问一把高人
【 以下文字转载自 Linux 讨论区 】
【 原文由 EricYoung 所发表 】
一个mp3在线收听的cgi程序,服务器提供一MP3文件列表的Web
页面供浏览器端用户选择曲目,提交后由服务器端CGI程序处理
用户所做的选择,将MP3播放序列形成一m3u播放序列文件返回
到浏览器端,而浏览器端则调用与m3u文件所关联的Winamp播放
器,从而实现MP3的在线播放。
主要程序是cgi-bin目录下边的两个文件,mp3.m3u和cgi-lib.pl
(一个很著名的Perl常用例程库) ,权限都是755
现在说问题:程序在win2000+activeperl+apache下边已经通过,
没有出现任何问题。但是在redhat7.2+apache+activeperl
下边一点播放就老出现这摸一个错误premature end of
script headers mp3.m3u.

程序上边不存在问题,而且以前曾经在linux机器下边调试成功过。
c***c
发帖数: 21374
2
来自主题: BuildingWeb版 - 能在本地调试论坛吗?
当然可以
web server:xp自带的iis
如果要cgi的,下载activeperl(activeperl.com)
如果要php的,下载php(php.net)
如果要mysql,下载mysql(mysql.com)
当然都是下载for winxp版本的
然后按照说明做就ok了
j***u
发帖数: 836
3
要交CS作业、小project什么的同学有福了。抄抄我这个就可以对付了。
为了看清楚电脑是怎么发牌的,我用Perl语言编了以下这个小程序。
不会编程的同学,只要在自己电脑上安装有Perl(可以免费下载和安装,3分钟的事,见
后),就可以运行我的程序玩。
这个程序的核心在于$random_number = int(rand(34));
搞到1个在0和33之间的伪随机数。然后根据0到33各代表哪张麻将牌发出麻将。
程序先用了时间作种子。
$seed = time();
srand($seed);
根据网上资料,Perl的srand不可在循环里反复被call,否则反而带来重复。
用Windows的同学,先在右下角Start的命令里打cmd(或All Programs>Accessaries>
Command Promopt)打开Command窗口,打Perl -v看看有无Perl程序。没有的话google "
how to install Perl"之类。我建议免费下载并安装ActivePerl,然后copy & paste我
以下的源程序到1个text editor比如Notepad或Wo... 阅读全帖
r***e
发帖数: 31
4
来自主题: BuildingWeb版 - Can activeperl handle cookie on win2000?
I am building a virtual server on windows 2000 server (through IIS) and using
active perl as backend scrip language. But my program always can't get the
cookie value (it is always empty) from customer? What's wrong with it? Anyone
has some experience on this?
P.S. The same program is running well on linux server (through apache).
Thanks a lot.
e********r
发帖数: 21
5
Here is my software list.
1. Operating system: Linux
2. Mysql
3. Apache
4. Winzip
5. GSview
6. Acrobat for PDF file
7. Java
8. python / tcl / tk
9. ActivePerl
f*********e
发帖数: 8453
6
来自主题: BuildingWeb版 - 问个perl Mechanize问题
正自学,在学自动访问网页部分WWW::Mechanize。
可是写了几句小程序却总出错:
#! /usr/bin/perl -w
use strict;
use constant URL => "http://localhost:8081";
use WWW::Mechanize;
my $browser = WWW::Mechanize->new();
$browser->get(URL);
if($browser->success) {
my $content = $browser->content;
print "Result: '$content'\n";
}
else {
print "failed";
}
我用的perl环境是从activeperl下的for windows xp v5.10.0.1003. 我自己机器
上有apache, 用的端口是8081.
Perl出错信息是:
HTTP::Request version 1.3 required--this is only version 1.28 at C:/Perl/
j***y
发帖数: 2074
7
来自主题: Database版 - Problem in installing DBI?
Hi, all:
Now I want to install Perl DBI support for MySQL.
I first typed "ppm" in the command prompt, and thereafter typed "install DBI"
at the PPM prompt, but got the following response:
Error installing package 'DBI': Could not locate a PPD file for package DBI.
what does the error mean?
anyone has had the same experience?
any solution?
(my OS is WinNT4.0, my perl version is ActivePerl 5.6.1, build 628)
thanks,
j***y
发帖数: 2074
8
来自主题: Database版 - Problem in installing DBI?
thanks, mine version is ActivePerl 5.6.1, and i am gonna using it to support
MySQL.
s*****w
发帖数: 1527
9
Can't spawn "..\bin\sDn": No error at C:\Stock\script\test.pl line 4.
s*****w
发帖数: 1527
10
来自主题: Linux版 - get method not working for Perl ?
i'm using activePerl in my windows,
usually i use
$content = get(url)
split(/\n/, $content);
to get the webpage info.
But this time with this URL, $content is not the same as the webpage from
the "save as" from my browser.
http://www.lowes.com/ProductDisplay?masthead=true&selectedLocal
How can this be ?
Many thanks !
F****3
发帖数: 1504
11
不好意思,我是菜鸟。真的不懂。听说Windows下要安装很多包什么的。为什么使用
ActivePerl什么的不好呢?
我没有什么Linux经验,如果要学的话要多久能掌握Linux呢?
F****3
发帖数: 1504
12
不好意思,我是菜鸟。真的不懂。听说Windows下要安装很多包什么的。为什么使用
ActivePerl什么的不好呢?
我没有什么Linux经验,如果要学的话要多久能掌握Linux呢?
c**t
发帖数: 2744
13
来自主题: Programming版 - PERL help!
if ActivePerl;
ppm install IO::Tee

5.
64-
f*********e
发帖数: 8453
14
来自主题: Programming版 - 问个perl Mechanize问题
【 以下文字转载自 BuildingWeb 讨论区 】
发信人: furthermore (找啊找啊找), 信区: BuildingWeb
标 题: 问个perl Mechanize问题
发信站: BBS 未名空间站 (Sat Jun 14 09:57:44 2008), 转信
正自学,在学自动访问网页部分WWW::Mechanize。
可是写了几句小程序却总出错:
#! /usr/bin/perl -w
use strict;
use constant URL => "http://localhost:8081";
use WWW::Mechanize;
my $browser = WWW::Mechanize->new();
$browser->get(URL);
if($browser->success) {
my $content = $browser->content;
print "Result: '$content'\n";
}
else {
print "failed";
}
我用的perl环境是从activeperl下
Y*********I
发帖数: 54
15
来自主题: Programming版 - Perl 问题
我刚安装 ActivePerl 5.10
OS: vista home
When click on OLE-browser, got a message: Internet Explorer could not load
the PerlScript engine. This is most likely due to the value of the "
Initialize and script ActiveX controls not marked as safe" security setting
of the "Local intranet" zone. PerlScript inside IE will only run on Windows
XP SP2 and later if this setting is set to Enable. Setting it to Prompt
doesn't seem to work.
恳请各位帮助。
非常感谢。
z***y
发帖数: 7151
16
来自主题: Software版 - Re: 那儿有PC上的PERL?-Here

You go : www.perl.com, it's about 6M.
The name is : ActivePerl
g****y
发帖数: 323
17
来自主题: Software版 - Re: help!
Other server-side scripting languages include PerlScript, which is similar to Perl, and Python. To learn more about PerlScript be sure to read: Using PerlScript to Create ASP Pages. For more information on Python, be sure to visit: Python.org.
http://www.4guysfromrolla.com/webtech/faq/Beginner/faq2.shtml
It seems you need to download and install activeperl
For more visit
perlscripters.com
x******g
发帖数: 3952
18
来自主题: Unix版 - [转载] Perl for windows?
ActivePerl
f****y
发帖数: 70
19
来自主题: Unix版 - how to uninstll perl?
look at this document
http://aspn.activestate.com/ASPN/docs/ActivePerl/install.html#uninstalling%2
0activeperl%20on%20solaris
It mentions two ways to uninstall depending on how installed. But how to kno
w how the perl installed, if it's installed by others.
r*****q
发帖数: 216
20
请教一个在CGI 中使用自己改写的Model时的问题 Mastering Perl for
Bioinformatics中的例子
先说一下我的调试环境 IIS5.1 XP ActivePerl 5.8.8
自己改写了3个Model 1.Restrictionmap.pm 2. Rebase.pm 3. SeqFileIO.pm (这三个
package 我的已经分别在cmd模式下调试过了,都没有问题,而且我都放在IIS5.1的默认
的/Inetpub/wwwroot/的文件夹中了 ;在最后面另附model 的用法说明)
然后用main.cgi 实现 (以用 perl -c main.cgi 编译过 syntax ok)
在调试的时候 我自己加了三个标志
1>print "$sequence\n", "one",hr;
2>print "two",hr;
3>print "three",hr;
但在调试时 只能显示第一个标志,第二三个都没有显示(自己怀疑是标志1之后的语句
有问题,但用想不明白,请帮忙看看)
另外 还有一个问题 main.cgi可以upload文件 但在选取文件之后
i*********9
发帖数: 44
21
来自主题: Statistics版 - 如何删去string variable尾部的字符?
PERL如此Powerful,我很想学学
请问大侠我该下载Strawberry Perl还是ActivePerl?我是初学者。。。多谢!
z**k
发帖数: 378
22
来自主题: Statistics版 - 如何删去string variable尾部的字符?
ActivePerl
1 (共1页)