| pkundu | hi 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 |
| Yaakov | pkundu: Do you have your firewall blocking FTP? pkundu: You probably need to use passive modde. mode. |
| pkundu | Thnx Yaakov but I am new to ubuntu do u know how to do that |
| Yaakov | You can set an environment variable that will tell CPAN to use passive mode. I can't recall it. Surely DAJORZ knows. |
| j2daosh | howdy doody people |
| pkundu | DAJORZ are you here |
| Yaakov | pkundu: This might help: http://www.netadmintools.com/art273.html |
| j2daosh | how can i do a match in an if()? |
| Yaakov | pkundu: For the record, the -i is un-needed. cpan Bundle::CPAN will do it. |
| j2daosh | if ($foo = m/string/){ .. } ? |
| Yaakov | j2daosh: What happens when you try it? |
| j2daosh | nothing really... its almost like it doesn't see i want to match |
| Yaakov | eval: $_="blort"; if (/blort/) {print "Yes, blort."}; unless (/blort/) {print "No, not blort."} |
| buubot | Yaakov: Yes, blort. 1 |
| Yaakov | eval: $_="blOrt"; if (/blort/) {print "Yes, blort."}; unless (/blort/) {print "No, not blort."} |
| buubot | Yaakov: No, not blort. 1 |
| Yaakov | Something *seems* to happen. |
| j2daosh | hmm |
| Yaakov | That sort of thing you *really* need to test for yourself. It will make you more popular here if you do. |
| j2daosh | well i had tried but it doesn't seem to do anything... |
| Yaakov | Then your problem is elsewhere. Check your data and your pattern. |
| j2daosh | ok correction... it does *something*... as in not go to my else{} but it's not doing what it should in my if{} |
| Yaakov | Also, always test with a simplified case for something like that. |
| dazjorz | Yaakov: what the. } else { ? |
| Yaakov | dazjorz: The purpose of my code was to DEMONSTRATE the operation of the pattern. The redundancy was for EMPHASIS. |
| j2daosh | ahh... figured it out |
| Botje | Zeeshan_M: I duddits! |
| j2daosh | needed 2 freggin "==" not just one |
| Yaakov | dazjorz: Shorter code is not *always* optimal. See above. j2daosh: j2daosh =~ err =~ == is equivalence, =~ is binding. |
| dazjorz | Yaakov: Okay. |
| Botje | http://sial.org/pbot/24423 |