Re: log level

2008-05-25 Thread David Moreno
Yeah. D. On Sun, 2008-05-25 at 00:36 -0400, Chas. Owens wrote: > On Sat, May 24, 2008 at 2:28 PM, gypsy <[EMAIL PROTECTED]> wrote: > > I downloaded a perl script from http://www.tahina.priv.at/~cm/spam/ and > > it logs its activity. I wish to have my logs exclude level 'debug'. > > > > Things tr

Re: File::Find

2009-05-18 Thread David Moreno
called once for each file found. What have you tried so far? David Moreno http://twitter.com/damog -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: File::Find

2009-05-18 Thread David Moreno
Greg Eldridge wrote: What Benchmark .pm are you using ? CPAN i/benchmark/ => lists 66 entries, but none of which are simply Benchmark Thanks in advance. http://search.cpan.org/~nwclark/perl-5.8.9/lib/Benchmark.pm -- David Moreno http://twitter.com/damog -- To unsubscribe, e-m

Re: prob w/anonymous array

2009-05-20 Thread David Moreno
On May 20, 2009, at 4:50 PM, pa...@compugenic.com wrote: I have the following data structure defined: my @clients = ( { name=> 'joe', count => [ qw( one two three ) ] } ); Then I try running the following routine: for my $client (@clients) { for my $i ($client->{

Re: WWW::Mechanize's JS plugin

2008-02-05 Thread David Moreno
It says you should use the experimental method: > The experimental version of WWW::Mechanize available at > http://www-mechanize.googlecode.com/svn/branches/plugins/ D. On Fri, 2008-02-01 at 17:04 +0800, J. Peng wrote: > I found this module on cpan: > > http://search.cpan.org/~sprout/WWW-Mecha

Re: opendir

2008-02-09 Thread David Moreno
Heh, why? On Feb 9, 2008 10:21 AM, MK <[EMAIL PROTECTED]> wrote: > hey sorry, cancel that > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > >

Re: opendir

2008-02-10 Thread David Moreno
Heh. "kooks", I might code some Perl next time I hop on my surfboard :) D. On Feb 10, 2008 12:59 PM, Randal L. Schwartz <[EMAIL PROTECTED]> wrote: > >>>>> "MK" == MK <[EMAIL PROTECTED]> writes: > > MK> On 02/09/2008 12:31:33 PM, Dav

Re: Issue

2008-02-11 Thread David Moreno
27;); > print MYFILEE @betaid; > close (MYFILEE); > } > > any help will be appreciated. > -K > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > > -- David Moreno - http://www.damog.net/ Yes, you can.

Re: regarding regular expression

2008-02-11 Thread David Moreno
9822 854 227 > Fax: ++91-020 25674090 > Internet: http://www.t-systems.com > http://www.t-systems.com/> > > -- David Moreno - http://www.damog.net/ Yes, you can.

Re: lstat and its uses

2008-02-11 Thread David Moreno
On Feb 11, 2008 4:47 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > lstat $filename; > my $size = -s _; Did you mean: my $size = -s $_; ? -- David Moreno - http://www.damog.net/ Yes, you can.

Re: Tokenizing a string

2008-02-11 Thread David Moreno
But where's the fun then? :) On Feb 11, 2008 4:09 PM, Dr.Ruud <[EMAIL PROTECTED]> wrote: > Or not code a regex at all, and use a module like File::Basename or > File::Spec. -- David Moreno - http://www.damog.net/ Yes, you can.

Re: Sys::Gamin install or alternative file system monitor

2008-02-11 Thread David Moreno
FAMConnection' undeclared (first use in this > function) > Gamin.c:708: error: 'RETVAL' undeclared (first use in this function) > Gamin.c:712: error: expected expression before ')' token > Gamin.xs:322: error: expected expression before ')' token > Gamin.xs:322: warning: left-hand operand of comma expression has no effect > Gamin.c: In function 'XS_FAMEventPtr_fr': > Gamin.c:734: error: 'FAMEvent' undeclared (first use in this function) > Gamin.c:734: error: 'fe' undeclared (first use in this function) > Gamin.c:735: error: 'FAMRequest' undeclared (first use in this function) > Gamin.c:735: error: 'RETVAL' undeclared (first use in this function) > Gamin.c:739: error: expected expression before ')' token > Gamin.xs:331: error: expected expression before ')' token > Gamin.xs:331: warning: left-hand operand of comma expression has no effect > Gamin.c: In function 'XS_FAMEventPtr_hostname': > Gamin.c:761: error: 'FAMEvent' undeclared (first use in this function) > Gamin.c:761: error: 'fe' undeclared (first use in this function) > Gamin.c:762: warning: ISO C90 forbids mixed declarations and code > Gamin.c:767: error: expected expression before ')' token > Gamin.c: In function 'XS_FAMEventPtr_filename': > Gamin.c:787: error: 'FAMEvent' undeclared (first use in this function) > Gamin.c:787: error: 'fe' undeclared (first use in this function) > Gamin.c:788: warning: ISO C90 forbids mixed declarations and code > Gamin.c:793: error: expected expression before ')' token > Gamin.c: In function 'XS_FAMEventPtr_code': > Gamin.c:813: error: 'FAMEvent' undeclared (first use in this function) > Gamin.c:813: error: 'fe' undeclared (first use in this function) > Gamin.c:814: error: 'FAMCodes' undeclared (first use in this function) > Gamin.c:814: error: expected ';' before 'RETVAL' > Gamin.c:815: warning: ISO C90 forbids mixed declarations and code > Gamin.c:819: error: expected expression before ')' token > Gamin.xs:356: error: 'RETVAL' undeclared (first use in this function) > make: *** [Gamin.o] Error 1 > -- David Moreno - http://www.damog.net/ Yes, you can.

Re: lstat and its uses

2008-02-11 Thread David Moreno
t in that it doesn't have to do another system call. > > On Feb 11, 2008 2:06 PM, David Moreno <[EMAIL PROTECTED]> wrote: > > On Feb 11, 2008 4:47 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > > > > > lstat $filename; > > >

Re: Tokenizing a string

2008-02-12 Thread David Moreno
On Feb 12, 2008 4:01 AM, Dr.Ruud <[EMAIL PROTECTED]> wrote: > "David Moreno" schreef: > > > rvtol+news: > > Stop top-posting. Stop inline posting :p > The question was about a string that looks very much like a path and > filename. > If it is a

Re: Newbie File Question....

2008-02-13 Thread David Moreno
On Feb 13, 2008 12:30 PM, <[EMAIL PROTECTED]> wrote: > Thank you to all who replied to this requestnow I > understand! I appreciate the help and the courtesy > of the replies! Once againThank You!! "One more satisfied customer" -said somewhere sometime by

Re: subroutine simultaneousness

2008-02-18 Thread David Moreno
On Feb 17, 2008 3:48 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: > use IO::Handle; > STDOUT->autoflush; > > to the start of your program. What's the difference from this to setting $| to true? -- David Moreno - http://www.damog.net/ Yes, you can.

Re: opening a big file

2008-04-20 Thread David Moreno
Well, take a deeper look. The module itself has no extra dependencies so, if you can actually put it on your system somehow (even if you have such a limited access such as FTP or so), you can use the lib pragma to include the unique PM file. Hack after all, but it'd work, actually. Good luck

Re: Thoughts on comments

2007-05-14 Thread David Moreno Garza
Dr.Ruud wrote: > The / is taken, but there are many other ways to do multiline comments. > For one, see perldoc perlpod. You mean using =begin, =end? They are not exactly multiline *comments*. -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ http://www.georgedi

Re: how do I use a module without installing it?

2007-05-20 Thread David Moreno Garza
.html#How_install_private -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ Poor Mexico: So far from God, so close to the United States. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Parsing XML data

2007-05-21 Thread David Moreno Garza
indicate the data we need to extract from XML file. I tried used > Data::Dumper to help, but didn't get the results I though, any help would > be much appreciated as the best way to parse this data. I suggest you to use XML::TreePP. -- David Moreno Garza <[EMAIL PROTECTED]> | h

Re: parsing html data

2007-05-22 Thread David Moreno Garza
t am not sure which > module do I need for that. A number of modules around LWP can help you with it. WWW::Mechanize, specifically, can help you with its specific method, content(): $mech->content(format => 'text'); -- David Moreno Garza <[EMAIL PROTECTED]> | htt

Re: overriding posix::uname

2007-05-22 Thread David Moreno Garza
Funny thing: Jeff Pang wrote: > $ perl -e 'print $^O' > linux User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) Just trolling :-) -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ Saca tus alas y empieza a volar. -- To unsubscribe, e-mail: [EMAIL PRO

Re: How to split a large string with repeating delimiters into multiple substrings

2007-05-24 Thread David Moreno Garza
ing starting with and ending in . $string =~ s/\A//; $string =~ s/<\/upsl\-url>\z//; my @urls = split /<\/upsl\-url>/, $string; Does the trick. I guess :-) -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ Pobre México: Tan lejos de Dios, tan cerca de los Es

Re: Module question

2007-05-24 Thread David Moreno Garza
our @EXPORT = qw/mysub/; ? Or is the Perl 4 way to call subroutines also needed? -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ http://pub.tsn.dk/how-to-quote.php> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: What modules should I use to transfer a video scrip through the net?

2007-05-28 Thread David Moreno Garza
ou'll have your own question. -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ Más vale morir de pie que vivir de rodillas. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Remote backup file

2006-03-15 Thread David Moreno Garza
file from server > 1 too server 2 would using the LWP module be a good technique to use? What procedures you used to do to make the backup manually? -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ <[EMAIL PROTECTED]> | GPG: C671257D

Re: why i can't install Tk on Linux?

2006-06-04 Thread David Moreno Garza
oblem? What distro are you using? That is requiring you to get X headers. -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ <[EMAIL PROTECTED]> | GPG: C671257D Si no vuelves por que no quieres, si no por que no tienes pa'l pasaje. -

Re: simple perl script on Windows

2007-01-18 Thread David Moreno Garza
On Thu, 2007-01-18 at 11:44 -0500, Mathew wrote: > open FILE, "H:\My Music\folderlist.txt"; > > foreach my $line (readline FILE) { > $line =~ s/^.*\s//g; > open FILE2, "H:\My Music\artists.txt"; > print FILE2 $line . "\n"; > close FILE2; > } > > close FILE; I'd go w

Re: Capturing stdout and stderr without redirection

2007-01-18 Thread David Moreno Garza
On Thu, 2007-01-18 at 07:11 -0800, Peter Scott wrote: > my $output = `myperlscript.pl 2>&1`; > send_email($output) if $output; Doubt: Isn't send_email($output) in this situation still going to happen? I mean, even of there is not output on "myperlscript.pl 2>&1", $output is going to be set, meani

Re: simple perl script on Windows

2007-01-18 Thread David Moreno Garza
On Thu, 2007-01-18 at 21:42 -0500, Mathew Snyder wrote: > Citlali had provided a regex that almost did what I wanted and then David gave > me one that did exactly what I wanted. Yay! We learn from everybody :-) David. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: maximum file size for while() loop?

2007-01-19 Thread David Moreno Garza
On Fri, 2007-01-19 at 13:24 +, Rob Dixon wrote: >++$lines; What's exactly the difference between: ++$lines; and $lines++; ? David. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: maximum file size for while() loop?

2007-01-21 Thread David Moreno Garza
On Sat, 2007-01-20 at 09:31 +1100, Ken Foskey wrote: > > What's exactly the difference between: > > > > ++$lines; > > > > and > > > > $lines++; ? > > > Nothing in this context. What about other contexts? David. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: How to customize Perl installation

2007-01-22 Thread David Moreno Garza
On Mon, 2007-01-22 at 09:05 -0800, Jeff Peng wrote: > Hello, > > I just need Perl core and CGI.pm to be installed on my > host.How can I do it?thanks. It depends on what operating system you are using on your host. Cheers, David. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: How to customize Perl installation

2007-01-23 Thread David Moreno Garza
On Mon, 2007-01-22 at 20:09 -0800, Jeff Peng wrote: > > It depends on what operating system you are using on > > your host. > > > HI, > I'm using RedHat Linux (AS4) of 2.6 kernel.Thanks. I'm not experienced with Red Hat, but I'd bet it already contains Perl core and CGI.pm. Otherwise, find CGI a

Re: How to customize Perl installation

2007-02-10 Thread David Moreno Garza
ll other modules which make sense. > > What are you trying to accomplish? This would be even better: perl -mCGI -e1 If it doesn't return anything, then you have Perl and CGI.pm properly installed. -- David Moreno Garza

Re: HTTP Post using IO::Socket

2007-02-13 Thread David Moreno Garza
ave your ass, just as it saved mine a few weeks ago ;) http://users.skynet.be/pascalbotte/rcx-ws-doc/perlpost.htm That's exactly what you are looking for. But not using IO::Socket. -- David Moreno Garza Abajo y a la izquierda está el corazón.

Re: logic help

2007-02-15 Thread David Moreno Garza
taken from A is also in Y. See elements as dependencies. And the dependencies themselves, as sets. I'm sorry for not stating all of this with the proper mathematical terms: I'm not used to math terms in English. Hope this helps. -- David Moreno Garza Abajo y a la izquier

Re: Word counts

2007-02-20 Thread David Moreno Garza
ded to do a word count, if this is possible to > do. This might help you a bit: http://search.cpan.org/~clotho/CAM-PDF-1.08/lib/CAM/PDF.pm#Document_reading -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ No quiero ser esclavo de tanta publicidad. -- To unsubscribe,

Re: Word counts

2007-02-20 Thread David Moreno Garza
Mike Blezien wrote: > thx's, looks like a good place to start w/PDF files, now to find some info > on DOC files :) This might help: http://www.wellho.net/forum/Perl-Programming/convert-a-MS-Word-doc-into-multiple-HTML-pages.html -- David Moreno Garza <[EMAIL PROT

Re: Perl Parsing

2007-02-21 Thread David Moreno Garza
Sumit Shah wrote: > I have a string like: 'a = 1; b = 2; c = 3; d = 4' my($c) = $string =~ /c = (\d)/; Maybe? -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ Una vida sencilla para nada es aburrida. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: Output Order?

2007-02-28 Thread David Moreno Garza
;; y/a-z/za-y/; print > > Buffering: cat can't give all of its output until you finish writing > to it by closing filehandle o. Hope this helps! What's the proper way to handle buffering? I mean, to prevent it. -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.

Re: Hi ....

2007-03-09 Thread David Moreno Garza
Neal Clark wrote: > I always thought it was an acronym, for "Pratical Extraction and > Report Language". Is that untrue, just one of those post-facto > expansions? Indeed, just as Pathologically Eclectic Rubbish Lister. -- David Moreno Garza <[EMAIL PROTECTED]> |

Re: Filter Quotes

2006-03-05 Thread David Moreno Garza
On 18:30 Thu 02 Mar 2006, maillists wrote: > $Values->{text_field} =~ s/"/"/; Try adding a `g' on the end of the regexp: $Values->{text_field} =~ s/"/"/g; Cheers, -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/