From jozef at kutej.net Sat Mar 1 01:03:47 2008 From: jozef at kutej.net (Jozef Kutej) Date: Sat, 01 Mar 2008 10:03:47 +0100 Subject: [Bratislava-pm] [Fwd: [pm_groups] Introducing The Perl College] Message-ID: <47C91BF3.8050008@kutej.net> The Perl College? hmm... -------- Original Message -------- Subject: [pm_groups] Introducing The Perl College Date: Fri, 29 Feb 2008 16:29:44 -0500 From: Uri Guttman What is the Perl College? The Perl College is a creative merger of job training and job fairs. Here are its primary goals: * Provide free top quality training to qualified junior level Perl developers * Improve their Perl skills to the intermediate level * Match the new graduates with Perl jobs in the hiring companies * http://perlhunter.com/college.html The Perl College was created to address these issues in recruiting Perl coders: * A shortage of intermediate level Perl developers * A surplus of junior level Perl developers * Some are not developing Perl full time * Many are looking for a career developing Perl but can't get needed training and experience * Companies lacking the resources to train Perl developers We are currently seeking both sponsors and students for this unique education/recruitment opportunity. Hiring Sponsors: Thirty great applicants - cheap! Imagine how much it would cost in both time and money to find and train a qualified applicant for your Perl jobs. The Perl College dramatically improves the efficiency of this process by pre-screening and accepting only the most motivated students. Then we take it one step further. We take those already highly motivated students and train them up to a solid intermediate level of Perl skills. Efficiency, cost effectiveness and quality results - what could be better for your Perl recruitment needs? Student Candidates: Put yourself ahead of the competition. If selected you will have a week of free training from Damian Conway (valued at $3000). Plus you will exposed to employers who are actively seeking intermediate level Perl developers. Competition to get in will be fierce so put your best foot forward. Don't wait to apply as we will take only the thirty most qualified students. For more information on The Perl College, and how to apply to be a sponsor or a student go to these pages: http://perlhunter.com/college.html http://perlhunter.com/sponsors.html http://perlhunter.com/students.html Thanks, Uri Guttman, Dean of The Perl College -- Uri Guttman ------ uri at stemsystems.com -------- http://www.sysarch.com -- ----- Perl Architecture, Development, Training, Support, Code Review ------ ----------- Search or Offer Perl Jobs ----- http://jobs.perl.org --------- --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080301/dac1471f/attachment.bin From jozef at kutej.net Tue Mar 4 08:12:10 2008 From: jozef at kutej.net (Jozef Kutej) Date: Tue, 04 Mar 2008 17:12:10 +0100 Subject: [Bratislava-pm] slides zo vcerajska Message-ID: <47CD74DA.90905@kutej.net> Caute, ak by ste si chceli pozriet nieco zo vcerajsich prezentacii tak tu su: http://cle.sk/s5/fun-with-lvm.html http://cle.sk/s5/fun-with-raid.html Ak by ste sa hrali s Linux raid/lvm hdd performance tu su este nejake tips: # you can set read-ahead per blockdevice blockdev --setra 4096 /dev/mapper/vg00-data blockdev --setra 0 /dev/hda # there are different types of schedulers that can be set echo deadline > /sys/block/hda/queue/scheduler # and be nice also to the io for long running processes apt-get install schedutils man ionice Enjoy a prajem pekny den! Jozef. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080304/89f09302/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080304/89f09302/attachment-0001.bin From rajo at platon.sk Tue Mar 4 09:09:24 2008 From: rajo at platon.sk (Lubomir Host) Date: Tue, 4 Mar 2008 18:09:24 +0100 Subject: [Bratislava-pm] slides zo vcerajska In-Reply-To: <47CD74DA.90905@kutej.net> References: <47CD74DA.90905@kutej.net> Message-ID: <20080304170924.GO31521@platon.sk> Kedy a kde sa konala ta prezentacia? rajo On Tue, Mar 04, 2008 at 05:12:10PM +0100, Jozef Kutej wrote: > Caute, > > ak by ste si chceli pozriet nieco zo vcerajsich prezentacii tak tu su: > > http://cle.sk/s5/fun-with-lvm.html > http://cle.sk/s5/fun-with-raid.html > > > Ak by ste sa hrali s Linux raid/lvm hdd performance tu su este nejake tips: > > # you can set read-ahead per blockdevice > blockdev --setra 4096 /dev/mapper/vg00-data > blockdev --setra 0 /dev/hda > > # there are different types of schedulers that can be set > echo deadline > /sys/block/hda/queue/scheduler > > # and be nice also to the io for long running processes > apt-get install schedutils > man ionice > > Enjoy a prajem pekny den! > Jozef. > > _______________________________________________ > Bratislava-pm mailing list > Bratislava-pm at pm.org > http://mail.pm.org/mailman/listinfo/bratislava-pm -- ,''`. Lubomir Host 'rajo' ICQ #: 257322664 : :' : Jabber: rajo AT jabber.platon.sk VoIP: callto://rajo207 `. `' WWW: http://rajo.platon.sk/ Platon Group: http://platon.sk/ `- GnuPG key: DC0C C7EA 55C8 B089 C41D 944A F251 A93A 2361 A82F From emmanuel.rodriguez at gmail.com Tue Mar 4 10:02:33 2008 From: emmanuel.rodriguez at gmail.com (Emmanuel Rodriguez) Date: Tue, 04 Mar 2008 19:02:33 +0100 Subject: [Bratislava-pm] slides zo vcerajska In-Reply-To: <20080304170924.GO31521@platon.sk> References: <47CD74DA.90905@kutej.net> <20080304170924.GO31521@platon.sk> Message-ID: <47CD8EB9.4050708@gmail.com> Lubomir Host wrote: > Kedy a kde sa konala ta prezentacia? > To bol vcera vo Viedne. > rajo > > On Tue, Mar 04, 2008 at 05:12:10PM +0100, Jozef Kutej wrote: > >> Caute, >> >> ak by ste si chceli pozriet nieco zo vcerajsich prezentacii tak tu su: >> >> http://cle.sk/s5/fun-with-lvm.html >> http://cle.sk/s5/fun-with-raid.html >> >> >> Ak by ste sa hrali s Linux raid/lvm hdd performance tu su este nejake tips: >> >> # you can set read-ahead per blockdevice >> blockdev --setra 4096 /dev/mapper/vg00-data >> blockdev --setra 0 /dev/hda >> >> # there are different types of schedulers that can be set >> echo deadline > /sys/block/hda/queue/scheduler >> >> # and be nice also to the io for long running processes >> apt-get install schedutils >> man ionice >> >> Enjoy a prajem pekny den! >> Jozef. >> >> > > > > > > >> _______________________________________________ >> Bratislava-pm mailing list >> Bratislava-pm at pm.org >> http://mail.pm.org/mailman/listinfo/bratislava-pm >> > > > From jozef at kutej.net Tue Mar 4 23:50:23 2008 From: jozef at kutej.net (Jozef Kutej) Date: Wed, 05 Mar 2008 08:50:23 +0100 Subject: [Bratislava-pm] slides zo vcerajska In-Reply-To: <47CD8EB9.4050708@gmail.com> References: <47CD74DA.90905@kutej.net> <20080304170924.GO31521@platon.sk> <47CD8EB9.4050708@gmail.com> Message-ID: <47CE50BF.6040605@kutej.net> Emmanuel Rodriguez wrote: > Lubomir Host wrote: >> Kedy a kde sa konala ta prezentacia? >> > To bol vcera vo Viedne. Jo. Vienna.pm sa stretava kazdy prvy pondelok v mesiaci. Su mily, ale mozno po case im zacneme liezt na nervy, lebo koly nam musia hovorit po anglicky, co doteraz nemuseli. Skusil som napisat do Soitronu ci by nam neposkytli miestnost raz do mesiaca na ~1h. Uvidime aka bude odpoved. Ak niekoho napada kde inde by sa dal spravit meeting tak dajte vediet. Vo Viedni je to na univerzite kedze jeden z nich je myslim zamestnancom univerzity. Okrem mojich slides Domm (Thomas Klausner) prezentoval svoj: http://search.cpan.org/perldoc?Acme::ReturnValue ktory je okrem toho ze je "fun" vid.: http://returnvalues.useperl.at/ je aj ukazkou ako sa da parsovat perl kod pomocou parsera napisaneho v perli. http://search.cpan.org/perldoc?PPI Nuz a druha ukazka bola od KH (Karlheinz Zoechling), ktory ukazoval ako spravil kratky modul na to aby mohol pohodlne splitovat .csv subor v one-lineroch. Na zaver dodal, ze nevie ako sa pisu moduly pre cpan takze ten si na cpan-e nepozrieme. Minuly mesiac sa ma zaujala mala utilitka: http://search.cpan.org/perldoc?App::Ack Co je obdoba grep-u ale pre programatora. V celku sikovna. Prijemny start do noveho dna! Jozef. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080305/a2cbd83f/attachment.bin From jozef at kutej.net Tue Mar 18 01:03:23 2008 From: jozef at kutej.net (Jozef Kutej) Date: Tue, 18 Mar 2008 09:03:23 +0100 Subject: [Bratislava-pm] [Fwd: [pm_groups] Summer of Perl -- call for student proposals] Message-ID: <47DF774B.3060703@kutej.net> Ahojte, nepozna niekto studenta/studentov co by si chceli trochu zakodit pod hlavickou "Google's 2008 Summer of Code(tm)"? Jozef. -------- Original Message -------- Subject: [pm_groups] Summer of Perl -- call for student proposals Date: Tue, 18 Mar 2008 00:55:24 -0700 From: Eric Wilhelm To: PM Groups Hi all, Please forward this to your groups. (Also feel free to break into a discussion as to whether or how students are involved in the perl community, what we can do to connect with more universities and etc.) The Perl Foundation is participating in Google's 2008 Summer of Code(tm) and we have a lot of capable, willing mentors looking forward to working with some talented, driven students. So, we would like you to help find those students (and quickly -- the students must apply before March 24th.) This is a rare opportunity for students to get a chance to get a paid summer of hacking on exciting projects like Parrot, Perl 6, Moose, Jifty, SVK, Catalyst, or their very own Perl modules or applications. It also brings new talent into the community and gives the student a hefty "real world" experience with a knowledgable mentor. Further, employers love to see this sort of demonstration of teamwork, handling deadlines, communication skills, resourcefulness and etc. We're looking for promising students who are interested in open source (or maybe you know someone who *should* be interested in open source.) Knowledge of Perl is optional if the project is Parrot-related. The student doesn't need to be an expert in the problem domain (after all, learning is part of the process), but should bring a big pile of creativity, problem-solving skills, and determination. Students should review the page of suggested projects, but are encouraged to bring their own proposals (those are often the best.) The most important first step is getting in touch with the community and discussing their project idea with potential mentors. http://www.perlfoundation.org/perl5/index.cgi?gsoc2008_projects Additional information and links can be found here. http://www.perlfoundation.org/perl5/index.cgi?gsoc2008 Google has posted some flyers if you happen to have a university bulletin board or hallway handy: http://code.google.com/p/google-summer-of-code/wiki/GsocFlyers Additional info: http://code.google.com/soc/2008/ http://code.google.com/soc/2008/faqs.html (Note that google has particular requirements to do with the fact that they are paying the students. The student must be able to show their eligibility regarding enrollment and employability.) Remember, the Perl community draws talent from many fields, so if you came to Perl from a non-computer-science major and still have contacts in that department from your university, it is probably worth mentioning to them. Thanks, Eric -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080318/be9c566d/attachment.bin From emmanuel.rodriguez at gmail.com Wed Mar 19 05:32:56 2008 From: emmanuel.rodriguez at gmail.com (Emmanuel Rodriguez) Date: Wed, 19 Mar 2008 13:32:56 +0100 Subject: [Bratislava-pm] Pocitat dlzku cisla Message-ID: Ahojte, Tu je ako sa moze pocitat dlszka cisla. Ako vidite dando vyhral :'( Tu je oficialne cas by Tag Heuer a zponsorovane HP (ale oni nevedia). Benchmark: timing 10 iterations of dandoo, emo, emo_fast... dandoo: 5 wallclock secs ( 5.30 usr + 0.02 sys = 5.32 CPU) @ 1.88/s (n=10) emo: 10 wallclock secs ( 9.80 usr + 0.05 sys = 9.85 CPU) @ 1.02/s (n=10) emo_fast: 10 wallclock secs ( 9.57 usr + 0.03 sys = 9.60 CPU) @ 1.04/s (n=10) -- Emmanuel Rodriguez -------------- next part -------------- A non-text attachment was scrubbed... Name: cislo-length.pl.bz2 Type: application/x-bzip2 Size: 3046647 bytes Desc: not available Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080319/246df100/attachment-0001.bz2 From jozef at kutej.net Wed Mar 19 07:25:06 2008 From: jozef at kutej.net (Jozef Kutej) Date: Wed, 19 Mar 2008 15:25:06 +0100 Subject: [Bratislava-pm] Pocitat dlzku cisla In-Reply-To: References: Message-ID: <47E12242.1090907@kutej.net> Posielam vyupdatovanu verziu pocitajucu s nepresnostami pc aritmetiky a doplnenu o Manutarov "algoritmus" a testom vypoctov. :D Jozef. Emmanuel Rodriguez wrote: > Ahojte, > > Tu je ako sa moze pocitat dlszka cisla. Ako vidite dando vyhral :'( > Tu je oficialne cas by Tag Heuer a zponsorovane HP (ale oni nevedia). > > Benchmark: timing 10 iterations of dandoo, emo, emo_fast... > dandoo: 5 wallclock secs ( 5.30 usr + 0.02 sys = 5.32 CPU) @ > 1.88/s (n=10) > emo: 10 wallclock secs ( 9.80 usr + 0.05 sys = 9.85 CPU) @ > 1.02/s (n=10) > emo_fast: 10 wallclock secs ( 9.57 usr + 0.03 sys = 9.60 CPU) @ > 1.04/s (n=10) > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Bratislava-pm mailing list > Bratislava-pm at pm.org > http://mail.pm.org/mailman/listinfo/bratislava-pm -------------- next part -------------- A non-text attachment was scrubbed... Name: cislo-length.pl Type: application/x-perl Size: 1257 bytes Desc: not available Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080319/2bf81a8d/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080319/2bf81a8d/attachment-0001.bin From emmanuel.rodriguez at gmail.com Wed Mar 19 13:50:19 2008 From: emmanuel.rodriguez at gmail.com (Emmanuel Rodriguez) Date: Wed, 19 Mar 2008 21:50:19 +0100 Subject: [Bratislava-pm] Pocitat dlzku cisla In-Reply-To: <47E12242.1090907@kutej.net> References: <47E12242.1090907@kutej.net> Message-ID: <47E17C8B.9010807@gmail.com> Napísal som ešte 4 testy: emo_accurate - Použiva log bez "floating point" manutara_int - Ako manutara ale počítať s intom a nie s "floating points" manutara_inv - Ako manutara ale použiva "multiplications" hardcoded - Pouziva "if" Ale emo_accurate je najpomalšie (asi 200 krad pomalšie) tak komentoval som tento test. Ešte raz najrychlejsie je dandoo (length($c)). Jozef Kutej wrote: > Posielam vyupdatovanu verziu pocitajucu s nepresnostami pc aritmetiky a > doplnenu o Manutarov "algoritmus" a testom vypoctov. > > :D > > Jozef. > > Emmanuel Rodriguez wrote: > >> Ahojte, >> >> Tu je ako sa moze pocitat dlszka cisla. Ako vidite dando vyhral :'( >> Tu je oficialne cas by Tag Heuer a zponsorovane HP (ale oni nevedia). >> >> Benchmark: timing 10 iterations of dandoo, emo, emo_fast... >> dandoo: 5 wallclock secs ( 5.30 usr + 0.02 sys = 5.32 CPU) @ >> 1.88/s (n=10) >> emo: 10 wallclock secs ( 9.80 usr + 0.05 sys = 9.85 CPU) @ >> 1.02/s (n=10) >> emo_fast: 10 wallclock secs ( 9.57 usr + 0.03 sys = 9.60 CPU) @ >> 1.04/s (n=10) >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Bratislava-pm mailing list >> Bratislava-pm at pm.org >> http://mail.pm.org/mailman/listinfo/bratislava-pm >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: cislo-length.pl Type: application/x-perl Size: 2469 bytes Desc: not available Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080319/f1a21d95/attachment.bin From emmanuel.rodriguez at gmail.com Wed Mar 19 14:08:51 2008 From: emmanuel.rodriguez at gmail.com (Emmanuel Rodriguez) Date: Wed, 19 Mar 2008 22:08:51 +0100 Subject: [Bratislava-pm] Pocitat dlzku cisla In-Reply-To: <47E12242.1090907@kutej.net> References: <47E12242.1090907@kutej.net> Message-ID: <47E180E3.9080900@gmail.com> Pozeral som ako Java 1.6 robi toto, a tu je ako Integer.toString(10) robi: final static int [] sizeTable = { 9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999, Integer.MAX_VALUE }; // Requires positive x static int stringSize(int x) { for (int i=0; ; i++) if (x <= sizeTable[i]) return i+1; } Jozef Kutej wrote: > Posielam vyupdatovanu verziu pocitajucu s nepresnostami pc aritmetiky a > doplnenu o Manutarov "algoritmus" a testom vypoctov. > > :D > > Jozef. > > Emmanuel Rodriguez wrote: > >> Ahojte, >> >> Tu je ako sa moze pocitat dlszka cisla. Ako vidite dando vyhral :'( >> Tu je oficialne cas by Tag Heuer a zponsorovane HP (ale oni nevedia). >> >> Benchmark: timing 10 iterations of dandoo, emo, emo_fast... >> dandoo: 5 wallclock secs ( 5.30 usr + 0.02 sys = 5.32 CPU) @ >> 1.88/s (n=10) >> emo: 10 wallclock secs ( 9.80 usr + 0.05 sys = 9.85 CPU) @ >> 1.02/s (n=10) >> emo_fast: 10 wallclock secs ( 9.57 usr + 0.03 sys = 9.60 CPU) @ >> 1.04/s (n=10) >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Bratislava-pm mailing list >> Bratislava-pm at pm.org >> http://mail.pm.org/mailman/listinfo/bratislava-pm >> > > From jozef at kutej.net Wed Mar 26 04:45:25 2008 From: jozef at kutej.net (Jozef Kutej) Date: Wed, 26 Mar 2008 12:45:25 +0100 Subject: [Bratislava-pm] =?iso-8859-2?q?Bratislavsk=FD_mestsk=FD_marat=F3n?= =?iso-8859-2?q?_2008?= Message-ID: <47EA3755.10106@kutej.net> Ahojte, V BA bude cez vikend maraton. Ja sa pojdem pozriet s detmi v sobotu doobeda a potom este na koncert poobede. Keby sa niekomu chcelo sa pridat tak nech da vediet. Pekny den, Jozef. -------------- next part -------------- A non-text attachment was scrubbed... Name: PROGRAM BCM 2008 AJ.doc Type: application/msword Size: 31232 bytes Desc: not available Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080326/59f01245/attachment-0001.doc -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080326/59f01245/attachment-0001.bin From jozef at kutej.net Wed Mar 26 08:05:57 2008 From: jozef at kutej.net (Jozef Kutej) Date: Wed, 26 Mar 2008 16:05:57 +0100 Subject: [Bratislava-pm] dh-make-perl reprepro apt-file In-Reply-To: <17c2ef720801090914y14e7350cufaae3029ae0f38b1@mail.gmail.com> References: <478474FB.8000700@kutej.net> <17c2ef720801090914y14e7350cufaae3029ae0f38b1@mail.gmail.com> Message-ID: <47EA6655.2020103@kutej.net> Martin Rusko wrote: > Submitnut bug report. :-) hehee ... to sa mi lahko hovori. Tak som sa dnes k tomu dnes primel: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472807 Nieje to az take zlozite. staci 'apt-get install reportbug', potom staci spustit 'reportbug /neaky/subor' alebo 'reportbug packagename' a pomocou "wizard-u" sa da celkom lachko vygenerovat bugreport ktory sa posle emailom. Pekny den, Jozef. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080326/17d18c36/attachment.bin From jozef at kutej.net Thu Mar 27 00:50:11 2008 From: jozef at kutej.net (Jozef Kutej) Date: Thu, 27 Mar 2008 08:50:11 +0100 Subject: [Bratislava-pm] [Fwd: Perl Myths Slides] Message-ID: <47EB51B3.9020206@kutej.net> Ahojte, Ked budete mat chvilu na citanie tak si pozrite "Perl Baseless Myths & Startling Realities": http://timbunce.files.wordpress.com/2008/03/perl-myths-200802-with-notes.pdf --- I'm positive about Perl Not negative about other languages Pick any language well suited to the task Good developers are always most important, whatever language is used --- Pekny den, Jozef. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080327/0dede08a/attachment.bin From stasko.jan at gmail.com Sat Mar 29 16:47:58 2008 From: stasko.jan at gmail.com (Jan Stasko) Date: Sun, 30 Mar 2008 00:47:58 +0100 Subject: [Bratislava-pm] perl :) Message-ID: <2a7de0910803291647qfaff575od820174c3ac4de80@mail.gmail.com> zdravim, takze zopar riadkov o mne... som studentom na TU v Kosiciach a s perlom som sa prvykrat stretol asi pred pol rokom ked som mal spravit zopar skriptov na semestralny projekt do skoly :) celkom ma to zaujalo a tak sa to so mnou taha aj dalej a prave som narazil na jeden problem.... pri porovnavani znakov s diakritikou (ľ, š, č a pod.) pomocou operatora eq mi dva rovnake znaky nevyhodnoti ako zhodne (znaky su nacitane z 2 rozdielnych suborov, oba subory su ulozene v UTF-8, takistko aj skript) . tak teraz rozmyslam ako to vyriesit. pomozete mi? dakujem s pozdravom Ján Staško -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/bratislava-pm/attachments/20080330/9688d47a/attachment.html From jozef at kutej.net Mon Mar 31 00:44:07 2008 From: jozef at kutej.net (Jozef Kutej) Date: Mon, 31 Mar 2008 09:44:07 +0200 Subject: [Bratislava-pm] perl :) In-Reply-To: <2a7de0910803291647qfaff575od820174c3ac4de80@mail.gmail.com> References: <2a7de0910803291647qfaff575od820174c3ac4de80@mail.gmail.com> Message-ID: <47F09647.4000906@kutej.net> Jan Stasko wrote: > zdravim, > > takze zopar riadkov o mne... som studentom na TU v Kosiciach a s perlom > som sa prvykrat stretol asi pred pol rokom ked som mal spravit zopar > skriptov na semestralny projekt do skoly :) celkom ma to zaujalo a tak > sa to so mnou taha aj dalej a prave som narazil na jeden problem.... pri > porovnavani znakov s diakritikou (ľ, š, č a pod.) pomocou operatora eq > mi dva rovnake znaky nevyhodnoti ako zhodne (znaky su nacitane z 2 > rozdielnych suborov, oba subory su ulozene v UTF-8, takistko aj skript) > . tak teraz rozmyslam ako to vyriesit. pomozete mi? dakujem > s pozdravom > Ahoj! Len tak z "brucha" skus pred porovnanim pouzit: utf8::upgrade($string1); utf8::upgrade($string2); Pozri: http://search.cpan.org/perldoc?utf8 Alebo mozno staci: binmode ($fh, ":utf8") or die "trouble $!"; hned po otvoreni suborov. Ked to nepomoze sprav nejaky jednodochy example, v ktorom to nefunguje, a posli niekto sa zahra... Jozef. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://mail.pm.org/pipermail/bratislava-pm/attachments/20080331/2f1751b6/attachment.bin