Help with Coding Style

2009-12-25 Thread Christoph Friedrich
Hello there, I am new to Perl and I am not sure if my Coding Style is good. Could some of you please check if my Coding Style is good or tell me what I should change to get a good Coding Style? You can find 2 files of my current project under http://www.christophfriedrich.de/code/ Please check

Re: Help with Coding Style

2009-12-25 Thread Christoph Friedrich
Thank you for your fast answer. John W. Krahn schrieb: Christoph Friedrich wrote: Hello there, Hello, I am new to Perl and I am not sure if my Coding Style is good. Could some of you please check if my Coding Style is good or tell me what I should change to get a good Coding Style? You

Clone an object

2009-12-28 Thread Christoph Friedrich
Hello, I have searched the internet but didn't found a good answer. How do I clone a Perl Object? For example like this: $a = My::Object->new(); $b = $a->clone(); Where $b is an exact copy of $a but in its own memory. Greets Christoph -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org

Re: Clone an object

2009-12-28 Thread Christoph Friedrich
My Big Problem is that I must copy an object to do a backtracking method (I am going to develop a sudoku solver). Uri Guttman schrieb: "CF" == Christoph Friedrich writes: CF> I have searched the internet but didn't found a good answer. CF> How do

Re: Clone an object

2009-12-28 Thread Christoph Friedrich
I know that there are many Sudoku solver over the internet. But than I has no chance of learning perl and learn some of the algorhytms ^^ Shlomi Fish schrieb: Hi Christoph! On Monday 28 Dec 2009 13:11:17 Christoph Friedrich wrote: My Big Problem is that I must copy an object to do a

Re: Clone an object

2009-12-28 Thread Christoph Friedrich
Thank you ^^ Shlomi Fish schrieb: Hi Christoph! This message was sent in private and it contains corrections to your English. On Monday 28 Dec 2009 14:53:04 Christoph Friedrich wrote: I know that there are many Sudoku solver over the internet. s/solver/solvers/ . s/over the/on the

UTF-8 problem with LWP

2010-01-13 Thread Christoph Friedrich
Hello there, I try to fetch the content of the page http://www.pluendermeister.de/sec/300300/?curServer=Aegwynn&gname=&submit=Daten+absenden with LWP and try to parse it. But when I print the result of my parsing it is not readable. Here is the result I get: "teh D\x{f6}nertiere",

Re: UTF-8 problem with LWP

2010-01-14 Thread Christoph Friedrich
Shawn H Corey schrieb: Have you tried: use utf8; I have tried it - did not success... -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: use with variable

2010-03-10 Thread Christoph Friedrich
Could I also write eval { use Env::Sourced "$oraenv"; } or die "Error in Eval $_"; to do the use on run time? Greets Christoph Jay Savage schrieb: On Wed, Mar 10, 2010 at 5:56 AM, HACKER Nora wrote: Hi list, I want to use the Env::Sourced module for setting some environment variables de

Compress a PNG File using PerlMagick

2010-03-30 Thread Christoph Friedrich
Hello there, I currently try to write an image to a png file with compression. But it seems not to compress the image after all. The original filesize of the image is 132,2 kb and when I try to save it as a png file its filesize grows to 512,5 kb. I use the following statement to save the imag

Re: Compress a PNG File using PerlMagick

2010-03-31 Thread Christoph Friedrich
Arg sry forgott to tell you that I use PerlMagick (Image Magick Library) Christoph Friedrich schrieb: Hello there, I currently try to write an image to a png file with compression. But it seems not to compress the image after all. The original filesize of the image is 132,2 kb and when I try

XS Module for external library

2010-12-21 Thread Christoph Friedrich
Hello there, currently I try to develop a little module to call function of the StormLib library (http://www.zezula.net/en/mpq/stormlib.html). I have already created a directory structure with "h2xs -On Game::Archive::MoPaQ" and all was OK. But now my problem is: how to handle the source of th