#perl - Mon 23 Apr 2007 between 09:54 and 10:04



pkunduhi I am trying to install Bundle::CPAN using "cpan -i Bundle::CPAN" . But my ubuntu system can reach ftp.perl.org. Is there any specific way to install Cpan module in ubuntu
Yaakovpkundu: Do you have your firewall blocking FTP?
pkundu: You probably need to use passive modde.
mode.
pkunduThnx Yaakov
but I am new to ubuntu do u know how to do that
YaakovYou can set an environment variable that will tell CPAN to use passive mode.
I can't recall it. Surely DAJORZ knows.
j2daoshhowdy doody people
pkunduDAJORZ are you here
Yaakovpkundu: This might help: http://www.netadmintools.com/art273.html
j2daoshhow can i do a match in an if()?
Yaakovpkundu: For the record, the -i is un-needed. cpan Bundle::CPAN will do it.
j2daoshif ($foo = m/string/){ .. } ?
Yaakovj2daosh: What happens when you try it?
j2daoshnothing really...
its almost like it doesn't see i want to match
Yaakoveval: $_="blort"; if (/blort/) {print "Yes, blort."}; unless (/blort/) {print "No, not blort."}
buubotYaakov: Yes, blort. 1
Yaakoveval: $_="blOrt"; if (/blort/) {print "Yes, blort."}; unless (/blort/) {print "No, not blort."}
buubotYaakov: No, not blort. 1
YaakovSomething *seems* to happen.
j2daoshhmm
YaakovThat sort of thing you *really* need to test for yourself. It will make you more popular here if you do.
j2daoshwell i had tried but it doesn't seem to do anything...
YaakovThen your problem is elsewhere. Check your data and your pattern.
j2daoshok correction... it does *something*... as in not go to my else{} but it's not doing what it should in my if{}
YaakovAlso, always test with a simplified case for something like that.
dazjorzYaakov: what the. } else { ?
Yaakovdazjorz: The purpose of my code was to DEMONSTRATE the operation of the pattern. The redundancy was for EMPHASIS.
j2daoshahh... figured it out
BotjeZeeshan_M: I duddits!
j2daoshneeded 2 freggin "==" not just one
Yaakovdazjorz: Shorter code is not *always* optimal. See above.
j2daosh: j2daosh =~
err
=~
== is equivalence, =~ is binding.
dazjorzYaakov: Okay.
Botjehttp://sial.org/pbot/24423

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 

IrcArchive