由买买提看人间百态

topics

全部话题 - 话题: perl
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)
f***y
发帖数: 98
1
来自主题: Database版 - getting connected to Oracle in Perl
Is there anyone who has experience with perl(on a Linux box) connecting to
Oracle? What I want to do is simply a sql read/write.
I am trying to install DBI::Oracle, but it is required that oracle has to be
already installed on the same box. If anyone who knows about this, would you
please intro it in a little more details? or, is there any other approach?
any suggestions will be appreciated.
f***y
发帖数: 98
2
来自主题: Database版 - [转载] Perl calls PL/SQL funtions
【 以下文字转载自 Programming 讨论区 】
【 原文由 ferry 所发表 】
I implemented a pl/sql funtion, created it on oracle and tested it
with pl/sql scripts. it was good.
when this funtion gets called from a perl script,
it fails with an error like this:
b*******r
发帖数: 28
3
手头有个活但不知道如何下手.
任务是到一个数据库网站,输入某个搜索条件和关键词,点击搜索后取得'搜索结果'页面
的源代码. 这个在web下很容易实现.但是我要用不同的关键词做5000次搜索,所以希望
能用Java, Perl 或者其他语言写个小程序.
我会用Java去获得静态url的源代码, 但是不知如何对付使用.aspx 结尾的动态网页.
初始界面和搜索结果界面是同样的url, 结尾都是 .aspx, 所以无法获得静态的url.
希望能给点建议,该如何入手呢?
l***y
发帖数: 791
4
来自主题: EmergingNetworking版 - 真诚请教关于学perl的一些问题 (转载)
perl is good for network management. experience is also good for network
management. if you want to go that direction, you should also work on your
networking knowledge, such as basic lan/wan tech and routing protocols such
as ospf and bgp. try get a cisco network certificate will help to get your
feet in the door. bonus to understand system administration/db. large scale
networks management tools such as openview, emc smarts, ibm netcool, route
explorer for l3vpns, these are good to put on your
q**j
发帖数: 10612
5
【 以下文字转载自 Linux 讨论区 】
发信人: qqzj (小车车), 信区: Linux
标 题: Linux+Perl+Eclipse+EPIC:如何显示console。
发信站: BBS 未名空间站 (Mon May 20 14:22:19 2013, 美东)
就是我 print hello world以后如何让结果显示在eclispe里面的一个console里面。往
上搜了一个给windows的,但是没有给Linux的。气死我了。请帮忙。
w******r
发帖数: 201
6
perl能不能批处理作字符串替换?
比方说把一个字符串中的a替换成x,b替换成y?
我知道可以
$str =~ s/a/x/g
$str =~ s/b/y/g
但这样要做2次scan,而且这样的a-x,b-y规则我有好多条,如果能一次替换就方便多了
c****m
发帖数: 824
7
在call by reference函数里change hash,为什么出来就没有了?
#!/usr/bin/perl -w
use strict;
sub sethash
{
my (%hash) = %{$_[0]};
$hash{1} = 5;
print("$hash{1}\n");
}
my %mainhash = ();
&sethash(\%mainhash );
print("$mainhash{1}\n");
u****a
发帖数: 1098
8
来自主题: Linux版 - unix下运行perl输出.txt文件
遇到一个非常奇怪的问题..
在server上用perl进行文件处理,输出结果保存在.txt文件...
结果每个.txt输出文件都是这种格式: filename?.txt
试过 chmod 777 filename?.txt
依旧无法下载..
在winSCP下的话根本打不开,提示os function错误..
请知道的帮助一下..
只是想把运行结果保存下来...
非常非常谢谢..
m*********g
发帖数: 273
9
来自主题: Linux版 - perl 高手看过来
To read this kind of PERL is a tough job.
g******e
发帖数: 3760
10
来自主题: Linux版 - perl 6 有点意思
There are a lot of data types in Java are not objects.
btw, Perl 6 has been out for so many years. What is the adoption rate so
far?
m*********g
发帖数: 273
11
来自主题: Linux版 - grep + perl regular expr
I would use PERL only.
k****f
发帖数: 3794
12
来自主题: Linux版 - 准备抛弃perl,投入python了
每次折腾perl的hash + array数据,排序,函数传参数等等,总是很麻烦的。
r****t
发帖数: 10904
13
来自主题: Linux版 - 准备抛弃perl,投入python了
perl 很难混出头的,你得维护一堆 module 在 cpan, 或者就是写 perl6 实现才能在
社区有点头面。。。
v*****r
发帖数: 1119
14
来自主题: Linux版 - 准备抛弃perl,投入python了
Swing 来,swing 去, 还是觉得 Perl 的 "more than one way" suit 自己的 style.
wy
发帖数: 14511
15
来自主题: Linux版 - 准备抛弃perl,投入python了
难道perl会先报错?
C********s
发帖数: 120
16
来自主题: Linux版 - 准备抛弃perl,投入python了
perl -c
ruby -c
with emacs flymake, syntax errors can be caught at edit time
r****t
发帖数: 10904
17
来自主题: Linux版 - 准备抛弃perl,投入python了
perl 没执行到的地方错了能报错?unit test 要搞好啊。
s*****w
发帖数: 1527
18
怎样用perl免费从自己的电脑发信到手机上?
chikat好像要钱
p*****s
发帖数: 344
19
你的手机能收email吗,有perl的yahoo mail client。
s*****w
发帖数: 1527
20
well, many modules are old, no examples,
which one do u recommend ?
BTW, i'm running cygwin+perl in windows.
p*****s
发帖数: 344
21
you have to try yourself, my real experience is also several years old.
actually I think since gmail has IMAP interface, perl should be no problem
to access gmail.
And someone even written module for google voice that you can send SMS
directly.
E*V
发帖数: 17544
22
I don't know perl
but usu. reuglar expression is greedy
which means
.* will match every thing unitl the end of the line
C********s
发帖数: 120
23
#!/usr/bin/env perl
use strict;
use warnings;
my $string = q{ $39.88};
if ( $string =~ m/\$(.+)\./ ){
print $1;
}
# ==> 39
S**I
发帖数: 15689
24
Learning Perl
E*V
发帖数: 17544
25
来自主题: Linux版 - Perl问题求助
I don't know perl
but `sed' could do this elegant ly
j******y
发帖数: 700
26
来自主题: Linux版 - Perl问题求助
perl -pi -e 's/OLD_STRING/NEW_STRING/g' file.txt
B*********s
发帖数: 292
27
来自主题: Linux版 - Perl问题求助
Use your perl script to process a 100byte file and check the result file.
w****o
发帖数: 2210
28
想在两个里面选一个学,那个前途比较好啊?好像perl的普通工作机会很多,但是大公
司比较新的东西好像用python的多?
S*A
发帖数: 7142
29
python. strongly recommended.
Perl is write only language :-)
f******y
发帖数: 2971
30
I only know perl. It is not bad as a scripting language.
c******n
发帖数: 4965
31
来自主题: Linux版 - nasty perl syntax minute issues
perl -e ' sub x { print "OO\n" } $y="x"; print "start\n"; defined (&
{$y} ) ; print "---\n"; &{$y};
'
start
C********s
发帖数: 120
32
来自主题: Linux版 - nasty perl syntax minute issues
every perl script should start with these two lines:
use strict;
use warnings;
s*****w
发帖数: 1527
33
来自主题: Linux版 - get method not working for Perl ?
if i still want to use perl to get the page info,
any solution pls ?
j*a
发帖数: 14423
34
来自主题: Linux版 - perl $_ question
:/tmp$ cat a.pl
$_ = "a b c d ef gh ij";
@var = split(/ /, $_);
foreach (@var)
{
print $_."\n"; # print all var in this line
}
:/tmp$ perl a.pl
a
b
c
d
ef
gh
ij
L*1
发帖数: 11537
35
Try to run this, and see what you get:
#!/usr/bin/perl
our $v1;
print "v1 = $v1\n";
if ($v1 == 0) {
print "v1 = 0\n";
}
else {
print "v1 != 0\n";
}
Don't know if that caused your problem.
You may change to use "yes", "no", "set", "notset".
o******1
发帖数: 1046
36
上面说的太啰嗦了,我想了一下,其实问题就一句话:
如何把backticks中调用的自己写的C可执行程序的output返回到perl程序中?
大牛们指点一下吧!
m**k
发帖数: 290
37
能用python就别用perl了。
python 里有 subprocess.Popen
per里可以 open FD "| c-prog"
o******1
发帖数: 1046
38
多谢提醒!
我试过了,命令里面的"|"应该是在"c-prog"之后吧。但是这也不行,还是不能把输出
返回给perl。
f*****3
发帖数: 19
39
你的c 语言输出是到STDOUT吗?
试试这个看输出是到STDOUT,或STDERR:
perl code.pl 1> out.txt 2> err. txt
f*****3
发帖数: 19
40
shell 变量一般在 ~/.bash_profile.如果不是你可以自己建立个文件。
==
export LD_LIBRARY_PATH=...
...
==
把你的c 程序放在已shell script 里面。
===
#!/bin/bash
source /home_dir/.bash_profile
/home_dir/bin/c_prog
===
再用Perl调用。
G*****h
发帖数: 33134
41
文件是你的
运行这个文件的进程是 httpd 调用 perl
用的是 httpd 系统用户的环境变量
R******d
发帖数: 1436
42
比如说python的matplotlib,perl的Algorithm::Munkres这样的。
多谢了。
R******d
发帖数: 1436
43
谢谢,如果是perl的模块呢?
R******d
发帖数: 1436
44
比如说python的matplotlib,perl的Algorithm::Munkres这样的。
多谢了。
R******d
发帖数: 1436
45
谢谢,如果是perl的模块呢?
w**2
发帖数: 724
46
来自主题: Linux版 - Hex byte string syntax in perl please
so i have a ascii string: 11, 22, 33 ,
(ascii 22 is not readable),
what's the syntax in perl for this string pls,
$str = "0x112233" ?
thanks !
c**t
发帖数: 2744
47
来自主题: Programming版 - perl monk (ascii art)
#/usr/bin/perl -w
use strict;my%p=
("\40"=>chr(ord("\40"
)*3-1).chr(ord("\40")+ord("\40")/4+7));$p{$p{"\40"}}="\40";print
@{[map{my$o= $p{"\40"};@{[map{(($o=$p{$o})x$_)}map{ord($_)-(ord(
"\40")*3 )-1}split//]},"\n"}split/n/,"uaqbnfdgcebcccbnebe"
."bcecc" ."gbndbeb" ."cbibi" ."bncdg" ."dcbib"
."nbbna" ."bnaaua" ."ubndd" ."ccgce" ."debcb"
."ncbeb" ."ebcbeb"
."cbebc" ."cnbbeb"
."ebcbebcbebcbcbnab"
."ebebecebebcbeb"
."na"]};# amen
This
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)