Re: any perl project ideas

2004-12-14 Thread Tor Hildrum
On Tue, 14 Dec 2004 23:10:48 -0800 (PST), Harbhajan Julka <[EMAIL PROTECTED]> wrote: > Hey all, > Need some pointers to perl projects that use all the > major functionalities of perl. Please pass your ideas > as soon as you can. I've been working on perl in > theory and tried some small programs to

any perl project ideas

2004-12-14 Thread Harbhajan Julka
Hey all, Need some pointers to perl projects that use all the major functionalities of perl. Please pass your ideas as soon as you can. I've been working on perl in theory and tried some small programs to practice, but need something bigger that would help understand perl and learn it too. Thanks

Edit properties for MS-Office files

2004-12-14 Thread Bee
Hi, I now have some thousands of ms-word and power point files . And they are required to make some clone like properties data filling. Now, I have to modify them one by one, is there any module would help to do this ? so I can just simply get a file list and clone data with a loop Is that

Re: receiving input from different sources

2004-12-14 Thread Edward WIJAYA
On Tue, 14 Dec 2004 20:19:23 -0800 (PST), Christopher Spears <[EMAIL PROTECTED]> wrote: I need to be able to receive input from the keyboard, but is being used to process a file and <> is not appropiate for this purpose. Consider using "Getopt" module. perldoc Getopt::Long perldoc Getopt::Std

receiving input from different sources

2004-12-14 Thread Christopher Spears
I need to be able to receive input from the keyboard, but is being used to process a file and <> is not appropiate for this purpose. What can I do? I was told there was a way to do this with exec. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <

Re: asking for y or n

2004-12-14 Thread Christopher Spears
Thanks for the answer Chris! Now my question is how do I find out if it is actually on my machine! I don't want to have to download anything because I am writing this script on one machine and then I am going to send it to another to be used. perl -v yields: This is perl, v5.8.1-RC3 built for d

Re: asking for y or n

2004-12-14 Thread Chris Devers
On Tue, 14 Dec 2004, Christopher Spears wrote: > I'm writing a Perl script where I ask the user a > question similar to: > > Would you like to remove this file? > Type y or n. Try Damian Conway's IO::Prompt: Use it like thi

Re: asking for y or n

2004-12-14 Thread Kirk Bauer
On Tue, 14 Dec 2004, Christopher Spears wrote: > I'm writing a Perl script where I ask the user a > question similar to: > > Would you like to remove this file? > Type y or n. > > How do I get Perl to receive the answer and act on it? > I've been looking in some of my books and noticed > two ways

Re: asking for y or n

2004-12-14 Thread Prasanna Kothari
#Warningt untested my $answer = ; chomp($answer); if($answer =~ m/^[y|Y]es$/) { print "Yes"; }elsif ( $answer =~m/^[n|N]o$/ { print "no"; }else { print "undefined value"; } Christopher Spears wrote: I'm writing a Perl script where I ask the user a question similar to: Would you like to r

asking for y or n

2004-12-14 Thread Christopher Spears
I'm writing a Perl script where I ask the user a question similar to: Would you like to remove this file? Type y or n. How do I get Perl to receive the answer and act on it? I've been looking in some of my books and noticed two ways of receiving input and <>. What is the difference between th

Re: regexp for a blank line

2004-12-14 Thread Dave Gray
Christopher Spears [mailto:[EMAIL PROTECTED] wrote: > I have to write a script that processes text in a > file. The text includes lots of blank lines. How can > I tell Perl to skip the lines? On Tue, 14 Dec 2004 11:22:54 +0530, Mallik <[EMAIL PROTECTED]> wrote: > next if ($line =~ /^\s*$/); +1

RE: Perl Presentation Slides

2004-12-14 Thread Charles K. Clarkson
Marcos Rebelo <[EMAIL PROTECTED]> wrote: : Hy all : : My next assignement is to do a presentation of Perl begginers : (from zero) in 4 days :'( : : Actually I have already 71 slides and I would like to see : other persons : work in this matter. Someone know where to find or can give : some Slid

DBD::Oracle

2004-12-14 Thread perl_cova
Now when I execute make I get the following error: [EMAIL PROTECTED] DBD-Oracle-1.16]# make gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -DVERSION=\"\"

Re: DBD::Oracle Instalation errors

2004-12-14 Thread Lawrence Statton
> I'm trying to install DBD:Oracle module (Itanium 64 bits) and when I execute > make i get the following errors: > from Oracle.xs:1: > dbdimp.h:44:17: oci.h: No such file or directory > dbdimp.h:45:22: oratypes.h: No such file or directory > dbdimp.h:46:20: ocidfn.h: No such file

Re: control loop question

2004-12-14 Thread Dave Gray
> Let's say I have a text file filled with: > > stuff > stuff > stuff > Users sometext > tom > dick > harry > Users more sometext >larry >curly >moe >

Perl Presentation Slides

2004-12-14 Thread Marcos Rebelo
Hy all My next assignement is to do a presentation of Perl begginers (from zero) in 4 days :'( Actually I have already 71 slides and I would like to see other persons work in this matter. Someone know where to find or can give some Slides similar to the ones I'm doing. Thanks Marcos -- To uns

DBD::Oracle Instalation errors

2004-12-14 Thread perl_cova
I'm trying to install DBD:Oracle module (Itanium 64 bits) and when I execute make i get the following errors: [EMAIL PROTECTED] DBD-Oracle-1.16]# make gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET

RE: Trouble with format

2004-12-14 Thread Moon, John
This is my code (something very simple): $variable = "Ordenes\nServicios\nGarantias"; format ORDENES = Text: ^* $variable ~~^* $variable . But I don't know how can I see or print the output of this, and send it bye email. I tried with write(), b

Re: MySQL and flock

2004-12-14 Thread Octavian Rasnita
Thanks but I don't have access to MySQL nor to the client that makes the update. I don't even know if it locks the tables or not. I would like to just copy some files in order to create a backup but I don't want to copy them while they are locked. However, I don't know if this is possible, because

RE: MySQL and flock

2004-12-14 Thread Ron Goral
> -Original Message- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 14, 2004 6:57 AM > To: [EMAIL PROTECTED] > Subject: MySQL and flock > > > Hi all, > > Does anyone know if MySQL uses flock when it modifies the data from a > database for locking the file

Re: Assigning a match to a varible without an IF

2004-12-14 Thread Jenda Krynicky
From: "S.A. Birl" <[EMAIL PROTECTED]> > I realized that, out of all of the PERL code Ive written, Ive only > been able to assign to a variable from a pattern match within an IF > statement: > > if ( /^From:(.*)$/ ) > { > $From = $1; > } > > Simple enough. But now I wanted to go deeper an

Re: Assigning a match to a varible without an IF

2004-12-14 Thread Ing. Branislav Gerzo
S.A. Birl [SAB], on Tuesday, December 14, 2004 at 09:58 (-0500 (EST)) contributed this to our collective wisdom: SAB> Problem is: SAB> $from_ = $From =~ /@/; SAB> returns 1. you should use this: ($from_ = $From) =~ /@/; but your regexp isn't right. maybe this will work: ($from_ = $

RE: Deleting the records from a table

2004-12-14 Thread Bob Showalter
Mallik wrote: > Hi Friends, > > I need a help from you in implementation of purging functionality. > I am given a hash of table(s), each having millions of records. i > need to delete those records keeping latest 5 days records in the > tables. > > I know the delete query like: delete from $tabl

RE: Deleting the records from a table

2004-12-14 Thread Mallik
Hi Jose, Thanks for your prompt reply. I too thought of same solution, but we don't want to delete the original table. Any other solution is greatly appreciated. Thanks & Regards, Mallik. -Original Message- From: José Pedro Silva Pinto [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 1

Re: SFTP problem...Please help me !.....

2004-12-14 Thread roime puniran
no..there is more than 100 file in my directory...actually it's a flow files... --- "Ing. Branislav Gerzo" <[EMAIL PROTECTED]> wrote: > roime puniran [rp], on Tuesday, December 14, 2004 at > 01:27 (-0800 > (PST)) typed the following: > > rp> transfered and remove successfull ..Below is my > rp>

Re: remote database access in perl

2004-12-14 Thread Adam Saeed
Thanks It works now. On Mon, 13 Dec 2004 23:43:06 -0800, Todd Lewis <[EMAIL PROTECTED]> wrote: > usually you have to log in as a local user before executing your > script. > > > > > I have written a simple program that should get data from a remote > > database, but it is not working giving e

Re: control loop question

2004-12-14 Thread Tor Hildrum
On Mon, 13 Dec 2004 14:46:13 -0800 (PST), Christopher Spears <[EMAIL PROTECTED]> wrote: > Hi! > > Let's say I have a text file filled with: > > stuff > stuff > stuff > Users sometext > tom > dick > harry > Users more sometext >