Re: How to avoid this greedy match?

2008-02-01 Thread News Howardz
Ajay & Rob, thanks for your perfect solutions! It does pick up the last matched string if we add another greedy match pattern (.+ or .*) in front of the original regex. And thanks for the replies from yitzle, John, Ruud as well. BR Howardz - Original Message From: Rob Dixon <[EMAIL PRO

Re: uninitialized value in printf

2008-02-01 Thread John W. Krahn
obdulio santana wrote: I must mix 3 files, and produce a little report but in line 23 and 31 is a warning of uninitalized value I really don't see the mistake. use warnings; use strict; @lfile0 = ; chomp @lfile0; @meses = qw(ene feb mar abr may jun jul ago sep oct nov dic); @files= glob "

Re: uninitialized value in printf

2008-02-01 Thread Gunnar Hjalmarsson
obdulio santana wrote: I must mix 3 files, and produce a little report but in line 23 and 31 is a warning of uninitalized value I really don't see the mistake. use warnings; use strict; @lfile0 = ; chomp @lfile0; @meses = qw(ene feb mar abr may jun jul ago sep oct nov dic); @files= glob "7

Re: lpr within perl

2008-02-01 Thread Chas. Owens
On Feb 1, 2008 2:08 PM, Grant <[EMAIL PROTECTED]> wrote: > I am able to print from my remote server to my local printer server > perfectly with 'lpr file.pdf'. I'd like to be able to do that from > within a perl script. What is the simplest way? snip open my $printer, "|-", "/usr/bin/lpr" or

uninitialized value in printf

2008-02-01 Thread obdulio santana
I must mix 3 files, and produce a little report but in line 23 and 31 is a warning of uninitalized value I really don't see the mistake. Thank you in advance use warnings; @lfile0 = ; chomp @lfile0; @meses = qw(ene feb mar abr may jun jul ago sep oct nov dic); @files= glob "78*"; my %textos;

lpr within perl

2008-02-01 Thread Grant
I am able to print from my remote server to my local printer server perfectly with 'lpr file.pdf'. I'd like to be able to do that from within a perl script. What is the simplest way? - Grant -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://

Re: debugger questions

2008-02-01 Thread Tom Phoenix
On Feb 1, 2008 8:04 AM, Cort Morgan <[EMAIL PROTECTED]> wrote: > Can anyone tell me is it possible to look at the current value > of a variable in a package method, if the package was included > in the main program with a use statement? Yes and kinda. If it's a package variable, yes; if it's a

debugger questions

2008-02-01 Thread Cort Morgan
Hi, Can anyone tell me is it possible to look at the current value of a variable in a package method, if the package was included in the main program with a use statement? I've read perldebug, perldebugtut, perldebguts, any web links I can find, and all no help (or I just don't understand

Re: Hiding standard output

2008-02-01 Thread Tom Phoenix
On Feb 1, 2008 6:26 AM, <[EMAIL PROTECTED]> wrote: > I want to hide the standard output on the terminal when I am executing > the Perl script. For example I am running this command > "`/usr/atria/bin/cleartool lslock lbtype:$dep_lbl`; > > if the execution of this command failed then whatever outp

Re: Hiding standard output

2008-02-01 Thread Chas. Owens
On Feb 1, 2008 9:26 AM, <[EMAIL PROTECTED]> wrote: > Hi All, > > I want to hide the standard output on the terminal when I am executing > the Perl script. For example I am running this command > "`/usr/atria/bin/cleartool lslock lbtype:$dep_lbl`; > > if the execution of this command failed then wh

RE: IO::Compress::Gzip creates empty file

2008-02-01 Thread RICHARD FERNANDEZ
> If you've just written the file, have you closed the > filehandle and checked the return value? > > Paul Johnson - [EMAIL PROTECTED] > http://www.pjcj.net > Well, I've just learned a valuable lesson (or two), which is, after all, what I'm on this list for :) Just prior to the code I've alrea

Hiding standard output

2008-02-01 Thread Irfan.Sayed
Hi All, I want to hide the standard output on the terminal when I am executing the Perl script. For example I am running this command "`/usr/atria/bin/cleartool lslock lbtype:$dep_lbl`; if the execution of this command failed then whatever output is coming on the terminal I want to hide that an

Re: Can't locate CPAN.pm in @INC

2008-02-01 Thread Pradeep Mishra
thanks adrano. you are correct. have installed perl-cpan. it is resolved now. thanks again, On Feb 1, 2008 8:17 AM, Adriano Ferreira <[EMAIL PROTECTED]> wrote: > On Feb 1, 2008 10:47 AM, Pradeep Mishra <[EMAIL PROTECTED]> > wrote: > > hi all > > > > I have been trying to install spamassin usin

Re: Can't locate CPAN.pm in @INC

2008-02-01 Thread Adriano Ferreira
On Feb 1, 2008 10:47 AM, Pradeep Mishra <[EMAIL PROTECTED]> wrote: > hi all > > I have been trying to install spamassin using ...perl -MCPAN -e shell > which throws an error > > Can't locate CPAN.pm in @INC (@INC contains: > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi > /usr/lib/perl5/si

Can't locate CPAN.pm in @INC

2008-02-01 Thread Pradeep Mishra
hi all I have been trying to install spamassin using ...perl -MCPAN -e shell which throws an error Can't locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-t

WWW::Mechanize's JS plugin

2008-02-01 Thread J. Peng
I found this module on cpan: http://search.cpan.org/~sprout/WWW-Mechanize-Plugin-JavaScript-0.002/lib/WWW/Mechanize/Plugin/JavaScript.pm#PREREQUISITES But it says, To load the plugin, just use WWW::Mechanize's use_plugin method (note that the current stable release of that module doesn't support

useragent to support javascript

2008-02-01 Thread J. Peng
Hello, I wrote a script using WWW::Mechanize, when I run it I got bad results, it said my browser has no javascript supported. Do you know how to fake the header declaring my useranget has enabled javascript? Thanks! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [