| loiic | Botje: i thought about doing that but wont scale after 10 |
| whoever | TMTOWTDIBMITB=> there is more than one way to do it... but mine is the best (THAT is the true perl pragma) |
| Botje | Sir_J: you could start by linking in perl? or installing libperl-dev or somesuch |
| Sir_J | I've installed libperl-dev package stil have the same error |
| whoever | link to perl |
| Sir_J | ? |
| whoever | -lperl or somehting |
| Sir_J | where should it be ? |
| whoever | somewhere in the line starting with gcc gcc foo -bar -baz -lperl |
| Sir_J | this is not my app |
| whoever | add it to the makefile |
| Sir_J | I'm just trying to compile it |
| Botje | and? fix the damn makefile. |
| Sir_J | Botje, oke |
| whoever | perl -pi -e 's/gcc /gcc -lperl /g' [Mm]akefile |
| f3ew | http://t3.dotgnu.info/blog/yblr/offtopic-masterpieces.html @ Botje |
| whoever | (backup :p) |
| loiic | buubot: you mentioned numeric, which is ? |
| Sir_J | whoever, thanks |
| f3ew | loiic, buubot is a bot, as the name says |
| loiic | eck ok |
| whoever | loiic: use a regexp, perldoc perlretut |
| f3ew | whoever, Botje told him how to |
| Sir_J | Botje, you right, it works |
| Botje | well, you could also just use Scalar::Util::looks_like_number to check if it's a number before you test with < and >< |
| loiic | i have seen the regexp solution, it will work with my 0 - 4 example, but wont work when the range will be 0 - 20 for example |
| whoever | if ($foo =~ m/^\d+$/) { do_stuff_if_number(); } else { do_stuff_if_not_number(); } perldoc perlretut (wasn't there a buubot command for that) ? |
| somian | whoever: you can ask buubot in #buubot |
| Casan | using Mail::Sender to send out a newsletter I get Error sending mail: Local user "name@host.tld" unknown on host "the smtp server address" but at other times it works. the smtp server is external but the host where the perl script is located is allowed to relay. any ideas for tracking down whats the problem here? |
| action | somian changes his nick to demondim-spawn |
| somian | changes his nick to demondim-spawn |
| whoever | Casan: are the adresses correct? |
| loiic | i settled for $server =~ m/^(0|1|2|3|4)$/ |
| whoever | loiic: use $server =~ m/^[01234]$/; same result, better to read and i think it's faster, too |