... betul!! dan ini katanya 'perlsync': The number 0, the strings '0' and '' , the empty list () , and undef are all false in a boolean context. All other...
hehe cuman penasaran.. Dari pertama mail mas ini di post sampai sekarang (2 Juli 2006) terus terang aja saya agak-agak telmi buat ngertiin yang mas maksud... ...
zach
doctor_moron@...
Jul 2, 2006 12:29 pm
999
dear id-perl, saya ingin menggunakan perl untuk membuat aplikasi WAP.. ada yang punya tutorialnya atau link2 yang harus saya pelajari gak ?? saya sudah mencoba...
saya punya buku, judulnya Leaning WML & WML script, kalo nggak salah martin frost yang ngarangnya.. (saya tau saya punya buku itu setelah liat mail ini he he...
zach
doctor_moron@...
Jul 6, 2006 7:15 am
1001
hey... :) Dalam satu skrip CGI yang saya buat, si skrip menerima parameter dari user, yang isinya nama dan pesan (sederhananya begitu). Lalu saya butuh...
zach
doctor_moron@...
Jul 11, 2006 7:46 pm
1002
... other ngga perlu dikasi write access lah. ... butuh om. itu namanya race condition. ada penjelasan yg bagus yg untungnya dalam Perl :-) ...
hi.. Intermediate Perl : "Naked Block = the block following that is not part of a larger Perl syntax construct" Maksudnya apa ya? kok bukan bagian dari Perl...
zach
doctor_moron@...
Jul 19, 2006 11:02 am
1004
Tadinya, pengen buktiin omongan yang ada di Best Practices, masalah simple slurping, ngebandingin 2 cara untuk buka file terus memproses nya, lalu inget ...
zach
doctor_moron@...
Jul 19, 2006 3:42 pm
1005
... G'day Zach, I'm going to take a wild guess at your question here. I think you're asking why Perl allows naked blocks. If I'm wrong, please ignore the ...
Another use of naked block is for looping, just like with any other looping construction (while, for, foreach). my $i = 0; { if ($i++ > 5) { last } else { ...
... and by using closures we can create iterators. and continuations. and.. :-) rgds, Edwin. __________________________________________________ Do You Yahoo!? ...
Hi, maaf banyak nanya lagi.. Kalo dari segi security, katanya KALAU BISA hindari se maksimal mungkin shell. Saya punya Web, bikin beberapa script CGI, well.....
zach
doctor_moron@...
Jul 21, 2006 7:52 am
1009
... pernah donk. biasanya kalau ketemu butuh komunikasi dng program yg satu2nya cara adalah melalui stdout dan atau stderr. misalkan update crontab entries. ...
... Itu cara gampang untuk membuat orang lain melakukan kesalahan yang tidak perlu. Salah satu fitur unggulan perl adalah berinteraksi dengan shell secara...
Hi, langsung aja ya ###PROBLEM############## use strict; my %hash; my @nam = qw (i am cool); my @loop=(); while(@nam) { $hash{word} = shift @nam; push...
zach
doctor_moron@...
Aug 2, 2006 2:06 pm
1012
Ok ok, kayak nya mulai dapat 'sedikit titik terang' + bantuan Data::Dumper dan tulisn RLS (mungkin..) ============== use strict; use Data::Dumper; my %hash; my...
zach
doctor_moron@...
Aug 2, 2006 9:55 pm
1013
... I'll explain what is happening inside the loop. ... When we do the first action here we change the value for the hash key "word" to the first element of...
... ini karena sampeyan pass / assign reference. mustinya {%hash}, bukan \%hash. kalau isi %hash berubah, maka jika men-dereference semua variabel yg menyimpan...
Internet unlimited murah, katanya http://mediasentra.com/easynet/index.html ada yang pernah coba ? makasih, zak ...
zach
doctor_moron@...
Aug 7, 2006 5:09 am
1016
Earn $5 per referral 1- Earn $10 per referral. 2- No waiting for minimum payouts or monthly payments (immediately payments). 3- Your referrals will pay you...
Join our affiliate program and earn $5 per sale after buying our complete business package your referral link will be created immediately, you can get it from...
Who wants to make $1000+ per day? Just Entering Simple Data From Home What if I told you that you can stay at home, quit your existing job, use my amazing...
Download 130 Million Email Address Advertise your ad to millions of internet persons! 1- Package 1 ( Commercial Package ) contain 20 million email. -...
Nggak tau kenapa pernah dalam satu kode saya mendereference hash dengan : print %{$hash_ref}->{'word'}, "\n"; Lalu ada yang ngasih tu kalo pake option -w...
zach
doctor_moron@...
Aug 9, 2006 7:40 pm
1021
When you write: %$hash_ref, You are telling Perl to treat the hash reference as a hash (you're dereferencing it). This is a normal thing to do, and won't...
Hi, Langsung saja, saya sering melihat petikan skrip seperti : =========================== while(defined(my $line=<STDIN>) { #why defined ? #BLOCK } ...
zach
doctor_moron@...
Aug 28, 2006 5:28 pm
1023
... itu lihat di mana? ... idiomnya (diamond operator): while (<>) { # do something with $_ } rgds, Edwin. __________________________________________________ ...
... betul, tapi kalo saya sih akan tetap pake defined(), atau sekalian while(<STDIN>, sebab sudah berarti while(defined($_=<STDIN>). why be wrong or be fragile...
... di beberapa skrip, trus di buku Programming Perl (kalo $line nya diganti sama $_, penulisnya bilang itu the longest way). makasih, zak ...
zach
doctor_moron@...
Aug 29, 2006 4:47 am
1026
Kutipan dari Programming Perl (2.8. List Values and Arrays) ========== Because the comma operator is left associative, if you have a series of comma-separated...