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
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:/
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
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
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
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
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
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
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.
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
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
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
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 <
> -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
> -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:
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
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
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
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/
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
20 matches
Mail list logo