Re: Parsing RSS feeds

2009-01-30 Thread Roman Makurin
В Сбт, 31/01/2009 в 09:05 +0200, Erez Schatz пишет: > On 1/31/2009 8:45 AM, Roman Makurin wrote: > > Hi All! > > > > Which is best way to parse(not create) RSS Feeds(0.9, 1.0 and 2.0) in > > perl ? I looked through XML::RSS, but it looks like mostly for creating > > feeds. > > It's also for parsin

Re: Parsing RSS feeds

2009-01-30 Thread Erez Schatz
On 1/31/2009 8:45 AM, Roman Makurin wrote: Hi All! Which is best way to parse(not create) RSS Feeds(0.9, 1.0 and 2.0) in perl ? I looked through XML::RSS, but it looks like mostly for creating feeds. It's also for parsing them. Try #!/usr/bin/perl use strict; use warnings; use XML::RSS; use

Parsing RSS feeds

2009-01-30 Thread Roman Makurin
Hi All! Which is best way to parse(not create) RSS Feeds(0.9, 1.0 and 2.0) in perl ? I looked through XML::RSS, but it looks like mostly for creating feeds. Thanks PS: Sorry for my English -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h..

Re: Issues with Perl, Xampp - connecting to Microsoft Access

2009-01-30 Thread Rob Dixon
ax1...@hotmail.com wrote: > > I just installed XAMPP after having no luck figuring out how to > configure Apache (yes, I am very much a rookie). I installed it, and > after playing around for a while I was able to get my first Perl > script to work (hello world). > > Step 1 accomplished. Whooo ho

Re: perlscript

2009-01-30 Thread Octavian Rasnita
From: "Erez Schatz" On 1/30/2009 5:34 PM, Octavian Rasnita wrote: Hello, Does anyone have some recommendations for some tutorials/documentation for using perlscript as a client-side language in browsers? I really recommend against it, whatever was of PerlScript is immensely dated, and, IIRC

Re: perlscript

2009-01-30 Thread Erez Schatz
On 1/30/2009 5:34 PM, Octavian Rasnita wrote: Hello, Does anyone have some recommendations for some tutorials/documentation for using perlscript as a client-side language in browsers? I really recommend against it, whatever was of PerlScript is immensely dated, and, IIRC, Internet Explorer o

Re: perlscript

2009-01-30 Thread Octavian Rasnita
From: "Telemachus" On Fri Jan 30 2009 @ 5:34, Octavian Rasnita wrote: Hello, Does anyone have some recommendations for some tutorials/documentation for using perlscript as a client-side language in browsers? Thank you. Octavian Never knew that there was such an animal. A quick Google sear

Re: perlscript

2009-01-30 Thread Telemachus
On Fri Jan 30 2009 @ 5:34, Octavian Rasnita wrote: > Hello, > > Does anyone have some recommendations for some tutorials/documentation > for using perlscript as a client-side language in browsers? > > Thank you. > > Octavian Never knew that there was such an animal. A quick Google search offers

perlscript

2009-01-30 Thread Octavian Rasnita
Hello, Does anyone have some recommendations for some tutorials/documentation for using perlscript as a client-side language in browsers? Thank you. Octavian -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.

Issues with Perl, Xampp - connecting to Microsoft Access

2009-01-30 Thread ax1lla
Hi, I just installed XAMPP after having no luck figuring out how to configure Apache (yes, I am very much a rookie). I installed it, and after playing around for a while I was able to get my first Perl script to work (hello world). Step 1 accomplished. Whooo h! Step two is to get my Perl scr

Re: Query in Perl Programming

2009-01-30 Thread Rob Dixon
S, Rajini (STSD) wrote: > > Hi Rob, > > When I set the date to 30-Jan-2009 and run the code given below, > > Eg : > > When dates are set as : > > my $days1 = epoch_days('30-Jan-09'); > my $days2 = epoch_days('29-Feb-2009'); > > I get the below error. > > hpcll402:/home/raji/perl>./

Re: Sorting a file dynamically

2009-01-30 Thread Rob Dixon
Anirban Adhikary wrote: > Dear list > I want to sort a file which contains the following data. > > SUDIP,PQR,OFFICER,15000 > DIPAK,ABC,CLERK,7500 > CHANDAN,MNP,MANAGER,12000 > WASIM,PQR,CLERK,12000 > PROTIK,XYZ,MANAGER,14000 > DIPAK,XYZ,ADMIN,17000 > > > now I have written a program which will s

RE: Query in Perl Programming

2009-01-30 Thread S, Rajini (STSD)
use strict; use warnings; use Time::Local; my $days1 = epoch_days('30-Jan-09'); my $days2 = epoch_days('14-Feb-2009'); print "Difference: @{[$days1 - $days2]} days\n"; BEGIN { my %month_num = do { my $n = 1; map(($_, $n++), qw/jan feb mar apr may jun jul aug sep oct nov dec/); };

RE: Query in Perl Programming

2009-01-30 Thread Owen
> > Get the same error, when the date is set to > > my $days1 = epoch_days('30-Jan-09'); > my $days2 = epoch_days('14-Feb-2009'); > > Day '30' out of range 1..28 at ./date2.pl line 35 > > -Rajini > > > > > > >>-Original Message- >>From: Owen [mailto:rc...@pcug.org.au] >>Sent: Friday, Januar

AW: Request Tracker 3.8 on Ubuntu 8.04

2009-01-30 Thread Thomas Bätzler
Alf Stockton > I am attempting to install RT3.8 on Ubuntu Hardy 8.04 and am having no > end of trouble with perl as I do not understand the language or its > environment. Read the provided documentation, please. It clearly tells you to run "make fixdeps" to fix missing dependencies. HTH, Thoma

Re: cryptic one liner explain

2009-01-30 Thread John W. Krahn
thebarn...@gmail.com wrote: Hi Hello, I run this command and pipe the output to a perl one liner. not quite sure how it parses the data: svmon -Pt3 | perl -e 'while(<>){print if($.==2 || $& && !$x++); $.=0 if (/^--+$/)}' That can be shortened to: svmon -Pt3 | perl -ne'print if $.==2 || $&

RE: Query in Perl Programming

2009-01-30 Thread S, Rajini (STSD)
Get the same error, when the date is set to my $days1 = epoch_days('30-Jan-09'); my $days2 = epoch_days('14-Feb-2009'); Day '30' out of range 1..28 at ./date2.pl line 35 -Rajini >-Original Message- >From: Owen [mailto:rc...@pcug.org.au] >Sent: Friday, January 30, 2009 4:09 PM

Request Tracker 3.8 on Ubuntu 8.04

2009-01-30 Thread Alf Stockton
I am attempting to install RT3.8 on Ubuntu Hardy 8.04 and am having no end of trouble with perl as I do not understand the language or its environment. As part of the install I need to:- r...@general:~/rt-3.8.2# make fixdeps /usr/bin/perl ./sbin/rt-test-dependencies --verbose --install --with-mys

RE: Query in Perl Programming

2009-01-30 Thread Owen
> > Hi Rob, > > When I set the date to 30-Jan-2009 and run the code given below, > > Eg : > > When dates are set as : > > my $days1 = epoch_days('30-Jan-09'); > my $days2 = epoch_days('29-Feb-2009'); > > I get the below error. > > hpcll402:/home/raji/perl>./date2.pl > Day '30' out of range 1..2

Re: cryptic one liner explain

2009-01-30 Thread Erez Schatz
On 1/30/2009 12:59 AM, thebarn...@gmail.com wrote: Hi I run this command and pipe the output to a perl one liner. not quite sure how it parses the data: svmon -Pt3 | perl -e 'while(<>){print if($.==2 || $& && !$x++); $.=0 if (/^--+$/)}' i understand that it resets the line count every time it

RE: Query in Perl Programming

2009-01-30 Thread S, Rajini (STSD)
Hi Rob, When I set the date to 30-Jan-2009 and run the code given below, Eg : When dates are set as : my $days1 = epoch_days('30-Jan-09'); my $days2 = epoch_days('29-Feb-2009'); I get the below error. hpcll402:/home/raji/perl>./date2.pl Day '30' out of range 1..28 at ./date2.pl lin

Re: perl stdout errors due to called script does not exist

2009-01-30 Thread inetquestion
On Jan 28, 9:46 pm, r...@kuicr.kyoto-u.ac.jp (Raymond Wan) wrote: > Hi, > > inetquestionwrote: > > for the example perl script below is there a way to avoid errors from > > showing up in stdout if the shell script being called does not exist? > > The shell script being called is not in the same dir

Sorting a file dynamically

2009-01-30 Thread Anirban Adhikary
Dear list I want to sort a file which contains the following data. SUDIP,PQR,OFFICER,15000 DIPAK,ABC,CLERK,7500 CHANDAN,MNP,MANAGER,12000 WASIM,PQR,CLERK,12000 PROTIK,XYZ,MANAGER,14000 DIPAK,XYZ,ADMIN,17000 now I have written a program which will sort the file based on column 1, column 2 and col

cryptic one liner explain

2009-01-30 Thread thebarn...@gmail.com
Hi I run this command and pipe the output to a perl one liner. not quite sure how it parses the data: svmon -Pt3 | perl -e 'while(<>){print if($.==2 || $& && !$x++); $.=0 if (/^--+$/)}' which outputs: --- Pid Command