Perl Binary

2004-08-31 Thread Eduardo Vázquez Rodríguez
Hello everybody out there using Perl- Im doing a perl scripts, which objective is to parse text. I am looking for a way of creating a "perl binary", my intention is that no one can read the scripts in a human readable way. Thanks in advance -- Eduardo Vázquez Rodríguez <[EM

Re: create connection from html form into insert MySQL data script

2004-09-07 Thread Eduardo Vázquez Rodríguez
I think he is from Croatia. moreover in the last part of this message I think what he is pretending is to accomplish a better way of inserting into the database. I think that one of his goals is to avoid the use of the variable names when inserting I believe that he pretends to catch the values

Reading Multiple Lines

2004-09-08 Thread Eduardo Vázquez Rodríguez
at the same time? can anyone suggest any better strategy? -- Eduardo Vázquez Rodríguez <[EMAIL PROTECTED]> Consultoría Implantación Tel. 5322 5200 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn

Perl and Threads

2004-10-11 Thread Eduardo Vázquez Rodríguez
Hello Im writing perl scripts that use threads. Mi goal is that each thread could process an element of an array that has 10 elements, so thread0 process array[0], thread1 process array[1] and so on until thread9 process array[9] Those 10 lines come from a file that Perl reads in chunks of ten l

Open a text file

2004-09-29 Thread Eduardo Vázquez Rodríguez
Hello everyone I have a question, how do I open a file in a specific line number, for example I want to open a text file exactly on line number 5, Thanks in advanced -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Open a text file

2004-09-29 Thread Eduardo Vázquez Rodríguez
Thanks Chris I try this and works $. = 0; do { $_ = } until $. == 5; WHILE { Do_whatever_you_like_begining_after_line_5(); :-) } Chris Devers wrote: On Wed, 29 Sep 2004, Eduardo Vázquez Rodríguez wrote: I have a question, how do I

Perl and Postgres

2004-09-29 Thread Eduardo Vázquez Rodríguez
Hello everybody out there using postgres and perl I am writing Perl scripts with the purpouse of parsing text and inserting the text parsed into a database, which I choose Postgresql. My scripts are many, exactly 7, if I ran each one of them sequencially, my processing speed is about 200 lines p

Upgrading from version 5.8.0 to 5.8.5 on Solaris

2004-10-06 Thread Eduardo Vázquez Rodríguez
Hello everybody! My intention is to have thread support in Perl, reding through CPAN I must have a Perl version compiled with support to threads. I made a script and I have the following output This Perl hasn't been configured and built properly for the threads module to work. (The 'useithreads

Re: perl and PostgreSQL?

2005-02-01 Thread Eduardo Vázquez Rodríguez
Did you have already check the compile process of the Perl Module that provides access to Postgres? If you have do it. Then my code might help you use DBI; use diagnostics; use strict; my $database="Database"; my $username="postgres"; my $password="123"; my ($mbd, $sth1); $mbd = DBI->connect("dbi

Start reading from a specific line

2005-02-14 Thread Eduardo Vázquez Rodríguez
Hello Perl Programmers I have a question regarding openning a file How can I start reading a file from n line? For example I open a File like this way open(INPUT, $file) while () { do something with $_; } But It starts to read from line #1, what I want is that start reading exactly from lin

RE: Start reading from a specific line

2005-02-14 Thread Eduardo Vázquez Rodríguez
TECTED] > To Perl Beginners 02/14/2005 04:13 cc PM Subject Re: Start reading from a specific line Eduardo Vázquez Rodríguez wrote: > Hello Pe

Re: Start reading from a specific line

2005-02-15 Thread Eduardo Vázquez Rodríguez
I know that programming is not one of my best skills, but this code works for me, your help is very appreciate open(INPUT, $file) or die "Can't read from file: $! $file"; # Where we "move" the pointer to line number 10 $. = 0; do { $_ = } until $. == 10; wh

Solaris Perl Execution

2005-02-17 Thread Eduardo Vázquez Rodríguez
Hello perl addicts! Is there a possible way of executing a Perl Script so that it uses not only one Solaris Processor? What I want is that my script use more than one processor, because they took much time to execute. What I do with my scripts are parsing log files (each one about 800 000 line

Re: Upgrading from Perl 5.6 to Perl 5.8

2005-02-23 Thread Eduardo Vázquez Rodríguez
Where did you install perl? Does your environment variables are pointing to the new perl version?. I had the same error and I fixed changing the usual path /usr/bin/perl to the new one /usr/local/bin/perl, just use the ln command As long as I remember the newer versions of perl are installed unde

"COPY FROM" Postgresql

2005-02-25 Thread Eduardo Vázquez Rodríguez
Hello Does anybody has already programmed the way of using the "COPY FROM" function from postgres, I try producing the following code: my ($dbh, $sth10); $dbh = DBI->connect("dbi:Pg:dbname=$database", "$username", "$password") or die "Error: $DBI::errstr \n"; $sth10 = $dbh->prepa

Unsubscrime from the list

2005-04-18 Thread Eduardo Vázquez Rodríguez
Unsubscrime from the list Thank U -- If I have seen further it is by standing on the shoulders of the giants Isaac Newton -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]