XML validating (no DTD)

2004-09-02 Thread Ing. Branislav Gerzo
Hello perlers, I know how to validate XML, but still error massages appears on STDOUT, anyone knows how to avoid them ? my code looks: use strict; use XML::Checker::Parser; my $xml_file = 'data.xml'; my $xp = new XML::Checker::Parser ( Handlers => { } ); eval { $xp->parsefile($xml_file); l

gmail api

2004-09-02 Thread Ramprasad A Padmanabhan
I tried the gmail api to send/recv mail Mail::Webmail::Gmail WWW::Scraper::Gmail WWW::GMail but all the three failed to make a connection. The problem I feel is that I am behind a http proxy Thanks Ram -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

System or Backticks?

2004-09-02 Thread Gavin Henry
Hi all, Still thinking about this one. I have: my $backup = system($rdiff, @args); # Send e-mail with a few details for success and failures # Success if ($backup == 0) { blah } I want to be able to stick the ouput of the $rdiff command into a strong, as well as get an exit code for it? Is th

Re: System or Backticks? - Don't reply, searched archives :-)

2004-09-02 Thread Gavin Henry
Sorry, this has been asked a million times, as I just foun din the archives and perlmonk. Don't bother replying :-) Gavin. -- Just getting into the best language ever... Fancy a [EMAIL PROTECTED] Just ask!!! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: System or Backticks?

2004-09-02 Thread Wiggins d Anconia
> Hi all, > > Still thinking about this one. I have: > > my $backup = system($rdiff, @args); > > # Send e-mail with a few details for success and failures > # Success > if ($backup == 0) { > blah > } > > > I want to be able to stick the ouput of the $rdiff command into a strong, > as well as g

Re: gmail api

2004-09-02 Thread Chris Devers
On Thu, 2 Sep 2004, Ramprasad A Padmanabhan wrote: I tried the gmail api to send/recv mail Mail::Webmail::Gmail WWW::Scraper::Gmail WWW::GMail but all the three failed to make a connection. The problem I feel is that I am behind a http proxy That &/or Google may be blocking out third party access s

Maketext and UTF-8

2004-09-02 Thread Andrés Felipe Hernández
Hello list, I'm having a little bit of trouble using Maketext with when returning texts with special characters (á, é ... etc). Although the text is returned successfully a warning is generated saying this: Malformed UTF-8 character (unexpected non-continuation byte 0x72 after start byte 0xe9)

screensaver prevention

2004-09-02 Thread JP
Does anyone have a brilliant idea how to prevent my windows NT screensaver from starting using perl? eg. is it possible to move the mouse pointer if it hasn't been moved for the last five minutes or so? any nice and simple to use perl modules that can assist me with mouse movements?? I found sev

Re: screensaver prevention

2004-09-02 Thread Chris Devers
On Thu, 2 Sep 2004, JP wrote: Does anyone have a brilliant idea how to prevent my windows NT screensaver from starting using perl? Why not just change it in the system settings? If that's not good enough, why not have Perl poke at the registry so that it can change the system settings? Why use P

RE: screensaver prevention

2004-09-02 Thread Dave Kettmann
Maybe he doesnt have admin access to the machine? :) Just a thought... Dave > -Original Message- > From: Chris Devers [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 02, 2004 3:41 PM > To: JP > Cc: [EMAIL PROTECTED] > Subject: Re: screensaver prevention > > > On Thu, 2 Sep 2004,

RE: screensaver prevention

2004-09-02 Thread Chris Devers
On Thu, 2 Sep 2004, Dave Kettmann wrote: Maybe he doesnt have admin access to the machine? :) Just a thought... You mean the screen saver isn't a user-level setting? How bizarre... -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Santaland Diaries (complete)' by

Re: XML validating (no DTD)

2004-09-02 Thread Ing. Branislav Gerzo
Ing. Branislav Gerzo [IBG], on Thursday, September 02, 2004 at 12:34 (+0200) wrote these comments: IBG> I know how to validate XML, but still error massages appears on IBG> STDOUT, anyone knows how to avoid them ? I answer to my simple question, Brano, it is easy, just wite this: use strict; use

Inserting short strings into longer strings -- strncpy in Perl?

2004-09-02 Thread Edward Wijaya
Hi, Suppose I have these two arrays: @arr1 =('GATGGATTAAAGGAGAGGTACTTACAGG', 'CGCCCAAGAGGCCAGAGCGGAGCA', 'CGTTAATGCATTAAAGTTCT'); @arr2 = ('tcctcta', 'aggccac', 'agctgcg'); Is there any efficient way to copy each element of @arr2 as

Re: Inserting short strings into longer strings -- strncpy in Perl?

2004-09-02 Thread Gunnar Hjalmarsson
Edward Wijaya wrote: Suppose I have these two arrays: @arr1 =('GATGGATTAAAGGAGAGGTACTTACAGG', 'CGCCCAAGAGGCCAGAGCGGAGCA', 'CGTTAATGCATTAAAGTTCT'); @arr2 = ('tcctcta', 'aggccac', 'agctgcg'); Is there any efficient way to copy each el

Re: Inserting short strings into longer strings -- strncpy in Perl?

2004-09-02 Thread Jeff 'japhy' Pinyan
On Sep 3, Edward Wijaya said: >@arr1 =('GATGGATTAAAGGAGAGGTACTTACAGG', > 'CGCCCAAGAGGCCAGAGCGGAGCA', > 'CGTTAATGCATTAAAGTTCT'); > >@arr2 = ('tcctcta', > 'aggccac', > 'agctgcg'); > > >Is there any efficient way to copy each element

Re: Inserting short strings into longer strings -- strncpy in Perl?

2004-09-02 Thread Gunnar Hjalmarsson
Gunnar Hjalmarsson wrote: perldoc -f substr and perldoc -f rand -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]