Re: finding corrupt files

2006-12-17 Thread Sharan Basappa
actuall these look like invalid ascii files to me (files seem to look like binary content). typically this happens when I transfer files from one machine to another using my usb key. But this is not the case with all files. So this is the reason I wanted to know if there is a way to recursively go

GD::Graph and alpha blending

2006-12-17 Thread Daniel Kasak
Hi all. I've been considering moving our graphing functionality to GD::Graph. I haven't used it at all yet. I read at http://tools.devchannel.org/devtoolschannel/04/04/13/1429242.shtml?tid=29&tid=46 that you can do alpha blending ( which is a requirement ), but I haven't been able to find any

Re: [PBML] Perl equivalent of PHP extract()?

2006-12-17 Thread Randal L. Schwartz
> "Kelly" == Kelly Jones <[EMAIL PROTECTED]> writes: Kelly> Inside a subroutine, I want to use this hash: Kelly> %hash = ("apple" => "red", "pear" => "green", "[EMAIL PROTECTED]" => "yellow"); Kelly> to set my($apple)="red", my($pear)="green", my($lemon)="yellow" Kelly> [getting rid of the j

Re: Perl equivalent of PHP extract()?

2006-12-17 Thread John W. Krahn
Kelly Jones wrote: > Inside a subroutine, I want to use this hash: > > %hash = ("apple" => "red", "pear" => "green", "[EMAIL PROTECTED]" => > "yellow"); So just use the hash. > to set my($apple)="red", my($pear)="green", my($lemon)="yellow" > [getting rid of the junk '@' and '!' chars in the ke

Perl equivalent of PHP extract()?

2006-12-17 Thread Kelly Jones
Inside a subroutine, I want to use this hash: %hash = ("apple" => "red", "pear" => "green", "[EMAIL PROTECTED]" => "yellow"); to set my($apple)="red", my($pear)="green", my($lemon)="yellow" [getting rid of the junk '@' and '!' chars in the key] This is approximately what PHP's extract() does. T

Re: my, my...

2006-12-17 Thread Jorge Almeida
On Sun, 17 Dec 2006, Jeff Pang wrote: There is a good article about Perl's variable scope. I think you maybe need to take some time to read it seriously: http://perl.plover.com/FAQs/Namespaces.html.en Good link. Thanks. -- Jorge Almeida -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

RE: Perl connecting to Oracle and SQL Server databases ...

2006-12-17 Thread Tony Heal
I did a simple google search for 'using perl with oracle' and came up with these http://www.cs.purdue.edu/homes/cs290w/perlLecs/PerlOracleExample.html I did not look to far into this but it looks promising http://vsbabu.org/mt/archives/2002/09/05/perl_for_oracle.html MS SQL was a little harder

pdf text parsin

2006-12-17 Thread Saurabh Singhvi
Hi all, I have some pdfs which are in some format. I want to extract the text from them. search on cpan gave some results for pdf manipulation, but they don't really seem to suggest on how to extract text from the pdfs. So please let me know on how to go about this. thanks Saurabh

Re: finding corrupt files

2006-12-17 Thread D. Bolliger
Sharan Basappa am Sonntag, 17. Dezember 2006 16:22: Hello > While going through some of the old text files, which til now I thought > were in good shape, found > that some of the files were corrupt and contained garbage data. We need to know more; what garbage? Where in the file? Are the files

Re: my, my...

2006-12-17 Thread Jeff Pang
>> >My only problem was that the variable in the subroutine was not declared >with my nor our, not on purpose. I didn't know that you could do that >when using strict. I always use my or our, so I hadn't encounter this >behaviour yet. > There is a good article about Perl's variable scope. I think

Re: Perl connecting to Oracle and SQL Server databases ...

2006-12-17 Thread Jeff Pang
Download the codes of "Perl for System Administration" and look at No. 7 charter,you may find what you needed. See: http://examples.oreilly.com/perlsysadm/ Good luck! -Original Message- >From: Benbart <[EMAIL PROTECTED]> >Sent: Dec 17, 2006 4:31 AM >To: beginners@perl.org >Subject: Per

Re: beginners ?

2006-12-17 Thread Jeff Pang
>I am having a problem running scripts on my local computer. I installed >Apche and perl but when I call a script from html I get this error: >Forbidden >You don't have permission to access /C:/Documents and >Settings/larry/Desktop/cgi-bin/countdown.pl on this server. > >my server log shows this

Re: finding corrupt files

2006-12-17 Thread Jeff Pang
>While going through some of the old text files, which til now I thought were >in good shape, found >that some of the files were corrupt and contained garbage data. I would like >to know if there is a >simple way to find this out using script since I have 100s of such files and >it is difficult fo

finding corrupt files

2006-12-17 Thread Sharan Basappa
While going through some of the old text files, which til now I thought were in good shape, found that some of the files were corrupt and contained garbage data. I would like to know if there is a simple way to find this out using script since I have 100s of such files and it is difficult for me t

beginners ?

2006-12-17 Thread Larry
I am having a problem running scripts on my local computer. I installed Apche and perl but when I call a script from html I get this error: Forbidden You don't have permission to access /C:/Documents and Settings/larry/Desktop/cgi-bin/countdown.pl on this server. my server log shows this: [Sat

Perl connecting to Oracle and SQL Server databases ...

2006-12-17 Thread Benbart
Hi all, Does anyone know of any resource that I can go to for example on connecting to Oracle and Microsoft SQL Server databases using Perl ??? I need more than connecting to the database, some example on how to do SELECT, INSERT, UPDATE and DELETE will be very helpful as well. Thanks in