Debugger start problem

2008-11-18 Thread craig
I added a -d to the first (bang) line of a Perl program I've been running for years, because I wanted to look at how it's been acting funny lately. This was what I got when I tired to start the program: -- dual-1-25:/Documents/Ours/logs/bin

Re: problem with Net::SSH::Perl

2008-11-18 Thread monnappa appaiah
Hi, yes, i'm using MS window, i followed the steps in the http://www.perlmonks.org/?node_id=613394 now i don't get the same error, now i'm getting a different error This is the error i'm getting "Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Fas tCalc at C:/

Re: Problem with parsing csv file and writing into two separate files

2008-11-18 Thread Mr. Shawn H. Corey
On Tue, 2008-11-18 at 10:16 -0500, Chas. Owens wrote: > Perl closes all file handles at the end of the program, so the only > reasons to close file handles early are > 1. the program doesn't end (it is a daemon) > 2. you have a limited number of file handles in your environment (or > you consume an

Re: Problem with parsing csv file and writing into two separate files

2008-11-18 Thread Raymond Wan
Hi Chas., Chas. Owens wrote: On Tue, Nov 18, 2008 at 10:05, Raymond Wan <[EMAIL PROTECTED]> wrote: Hi Lauri, Good to hear -- if the file is small enough to be read in entirely, that is what I would do. If you need to add in another loop to output a third file, then you can just add it in

HTML Stipper with an option for directories and multiple files

2008-11-18 Thread bdy
Does any one know if there is a HTML stripper module that contains an option to strip multiple files across multiple directories. Having a helluva time finding one and getting the strippers and parsers to work as I'd like them to. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Regular expression problem

2008-11-18 Thread Chas. Owens
On Tue, Nov 18, 2008 at 07:19, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: snip > Inside the [] the meta-character loose their meaning. Only ^ and - have > special meaning. You have to use | instead. snip You missed \, ], and the regex delimiter (default /, but could be nearly anything). Also

Re: HTML Stipper with an option for directories and multiple files

2008-11-18 Thread Stealth
On Tuesday 18 November 2008 09:34:52 am bdy wrote: > Does any one know if there is a HTML stripper module that > contains an option to strip multiple files across multiple > directories. > > Having a helluva time finding one and getting the strippers and > parsers to work as I'd like them to. > > T

Re: Problem with parsing csv file and writing into two separate files

2008-11-18 Thread Chas. Owens
On Tue, Nov 18, 2008 at 10:05, Raymond Wan <[EMAIL PROTECTED]> wrote: > > Hi Lauri, > > Good to hear -- if the file is small enough to be read in entirely, that is > what I would do. If you need to add in another loop to output a third file, > then you can just add it in easily to make another pas

Re: Problem with parsing csv file and writing into two separate files

2008-11-18 Thread Chas. Owens
On Tue, Nov 18, 2008 at 09:53, Lauri Nikkinen <[EMAIL PROTECTED]> wrote: snip > #Read the data into an array > my @data = <$fh>; snip This will only work so long as the file can be fit into memory, and even then, if the file is large enough, it can have a noticeable impact on system performance.

Re: Problem with parsing csv file and writing into two separate files

2008-11-18 Thread Raymond Wan
Hi Lauri, Good to hear -- if the file is small enough to be read in entirely, that is what I would do. If you need to add in another loop to output a third file, then you can just add it in easily to make another pass. One suggestion which makes no difference to your program and some people

Re: Problem with parsing csv file and writing into two separate files

2008-11-18 Thread Lauri Nikkinen
Thanks to Ray, I ended up doing this in this kind of way: -L #== #!/bin/perl use warnings; use strict; use Text::CSV_XS; use Tie::Handle::CSV; my $fh = Tie::Handle::CSV->new(csv_parser => Text::CSV_XS->new({binary => 1}), file

Re: algorithm permute

2008-11-18 Thread Sharan Basappa
Tom & Jay, Thanks a lot. Actually the user is same. I have confirmed again. I know it irritates a lot when a help seeker posts incorrect data and requests support. But in this case, the user is same. I have not gone deep into the issue. But the distinct difference is that in the terminal where it

Re: Regular expression problem

2008-11-18 Thread John W. Krahn
howa wrote: Hello, Hello, I have two strings: 1. abc 2. abc& The line of string might end with "&" or not, so I use the expression: (.*)[$&] Why it didn't work out? $ perl -le' for ( "abc", "abc&" ) { print; print $1 if /(.*)[$&]/; } ' abc Unmatched [ in regex; marked by <

RE: Regular expression problem

2008-11-18 Thread Stewart Anderson
> -Original Message- > From: Stewart Anderson > Sent: 18 November 2008 12:20 > To: beginners@perl.org > Cc: Stewart Anderson > Subject: RE: Regular expression problem > > > -Original Message- > > From: howa [mailto:[EMAIL PROTECTED] > > Sent: 18 November 2008 08:53 > > To: beginner

RE: Regular expression problem

2008-11-18 Thread Stewart Anderson
> -Original Message- > From: howa [mailto:[EMAIL PROTECTED] > Sent: 18 November 2008 08:53 > To: beginners@perl.org > Subject: Regular expression problem > > Hello, > > I have two strings: > > 1. abc > 2. abc& > > > The line of string might end with "&" or not, so I use the expression:

Re: Regular expression problem

2008-11-18 Thread Mr. Shawn H. Corey
On Tue, 2008-11-18 at 00:52 -0800, howa wrote: > Hello, > > I have two strings: > > 1. abc > 2. abc& > > > The line of string might end with "&" or not, so I use the expression: > > (.*)[$&] > > > Why it didn't work out? Inside the [] the meta-character loose their meaning. Only ^ and - ha

Re: Regular expression problem

2008-11-18 Thread Rob Coops
On Tue, Nov 18, 2008 at 9:52 AM, howa <[EMAIL PROTECTED]> wrote: > Hello, > > I have two strings: > > 1. abc > 2. abc& > > > The line of string might end with "&" or not, so I use the expression: > > (.*)[$&] > > > Why it didn't work out? > > > Thanks. > > > -- > To unsubscribe, e-mail: [EMAIL PRO

Re: perl module for graphs lines point

2008-11-18 Thread Mr. Shawn H. Corey
On Mon, 2008-11-17 at 23:07 -0800, ben perl wrote: > Hi , > > Is there a perl module to plot graphs with lines point. Yes, GD::Graph. You will need GD and GD::Text too. You can also try GD::Graph3d just for the fun of it. :) -- Just my 0.0002 million dollars worth, Shawn The map is n

Regular expression problem

2008-11-18 Thread howa
Hello, I have two strings: 1. abc 2. abc& The line of string might end with "&" or not, so I use the expression: (.*)[$&] Why it didn't work out? Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Problem with parsing csv file and writing into two separate files

2008-11-18 Thread Lauri Nikkinen
Hello, I would like to parse a .csv file and write certain records into two separate files. The program below writes the records easily into the csvtmp.csv but the second file is only created with no records written. I cannot see the problem here, the second file is produced easily if the first lo