beginners@perl.org

2010-05-24 Thread Weizhong Dai
Hi guys, I met a problem. When I tried this script below: // sub print_instruction { my ($disk, $start, $end) = @_; print "Move disk #$disk from $start to $end.\n"; } sub hanoi { my ($n, $start, $end, $extra, $m) = @_; if

beginners@perl.org

2010-05-24 Thread Rob Coops
On Mon, May 24, 2010 at 12:49 PM, Weizhong Dai wrote: > Hi guys, I met a problem. > When I tried this script below: > > // > sub print_instruction { > my ($disk, $start, $end) = @_; > print "Move disk #$disk from $start to $end.

beginners@perl.org

2010-05-24 Thread Philip Potter
On 24 May 2010 11:49, Weizhong Dai wrote: > Hi guys, I met a problem. > When I tried this script below: > > // > sub print_instruction { >  my ($disk, $start, $end) = @_; >  print "Move disk #$disk from $start to $end.\n"; > } > >

Creating a linux service

2010-05-24 Thread Chaitanya Yanamadala
hai i have a perl script which will automatically check for the existing files and then ftp them to a server, this one runs in a loop until i kill it, now what i wants is i want to make this as a service so that it can keep on running until i kill the service. so does any one have an idea how to d

Re: Creating a linux service

2010-05-24 Thread Chaitanya Yanamadala
Do u have any working model script for this.. @eric thank u for ur reply.. but i cannot able to understand it. i am not that much of an expert in LINUX.. Can u explain it to me in more detail. If u have an example can u just let me know.. Chaitanya On Mon, May 24, 2010 at 6:57 PM, Eric Veith1

Re: Creating a linux service

2010-05-24 Thread Shlomi Fish
Hi Chaitanya, On Monday 24 May 2010 16:19:25 Chaitanya Yanamadala wrote: > hai > i have a perl script which will automatically check for the existing files > and then ftp them to a server, this one runs in a loop until i kill it, now > what i wants is i want to make this as a service so that it c

Installation of WinPcap developer's pack

2010-05-24 Thread Bob McConnell
I am trying to install Net::Pcap for Camelbox Perl on WinXP. cpan returns the error message below, but won't tell me what the standard location should be for WpdPack. Where do I put it? Bob McConnell -8< CPAN.pm: Going to build S/

Re: Creating a linux service

2010-05-24 Thread Chaitanya Yanamadala
thank you shlomi ill try that Chaitanya On Mon, May 24, 2010 at 7:24 PM, Shlomi Fish wrote: > Hi Chaitanya, > > On Monday 24 May 2010 16:19:25 Chaitanya Yanamadala wrote: > > hai > > i have a perl script which will automatically check for the existing > files > > and then ftp them to a server

Enable cookies in a Mechanize script

2010-05-24 Thread Zhen Jiang
Hello, I'm trying to screen scrap a site that requires cookies to be enabled. I'm having problems getting to the next page. In the post action there's a ;jsessionid appended while there's no such id if I try loading the page in a cookie-enabled browser. I used HTTP::Cookies to enabled the

Re: Creating a linux service

2010-05-24 Thread Eric Veith1
Chaitanya Yanamadala wrote on 05/24/2010 03:51:56 PM: > but i cannot able to understand it. > i am not that much of an expert in LINUX.. Besides what Shlomi already posted to help you, let me go further into detail on my anti-daemonize thing. Traditionally, Unix services have brought themselves

RE: Installation of WinPcap developer's pack

2010-05-24 Thread Bob McConnell
From: Bob McConnell > I am trying to install Net::Pcap for Camelbox Perl on WinXP. cpan > returns the error message below, but won't tell me what the standard > location should be for WpdPack. > > Where do I put it? I am also having problems installing Net::Pcap on Slackware Linux. It fails a n

Unable to install Net::Pcap on Slackware

2010-05-24 Thread Bob McConnell
I am getting the following error report when I try to install Net::Pcap for Perl 5.10.0 as root on Slackware 12.2.0. Can anyone tell me what I am missing? Bob McConnell Test Summary Report --- t/03-openlive.t (Wstat: 256 Tests: 14 Failed: 1) Failed test: 13 Non-ze

DBD Oracle Assistance

2010-05-24 Thread Gorrebeeck, Robert
All I have a perl script that connects to Oracle 10.2 database. I have a very simple insert statement that inserts data into a table within a loop. The problem is on the 2nd iteration of the loop, the insert statement fails Here is the exact error: DBD::Oracle::st execute failed: Erro

Re: Unable to install Net::Pcap on Slackware

2010-05-24 Thread Uri Guttman
> "BM" == Bob McConnell writes: BM> I am getting the following error report when I try to install Net::Pcap BM> for Perl 5.10.0 as root on Slackware 12.2.0. Can anyone tell me what I BM> am missing? BM> t/03-openlive.t (Wstat: 256 Tests: 14 Failed: 1) BM>Failed test: