#perl - Tue 27 Mar 2007 between 08:31 and 08:43



loiicBotje: i thought about doing that but wont scale after 10
whoeverTMTOWTDIBMITB=> there is more than one way to do it... but mine is the best
(THAT is the true perl pragma)
BotjeSir_J: you could start by linking in perl?
or installing libperl-dev or somesuch
Sir_JI've installed libperl-dev package
stil have the same error
whoeverlink to perl
Sir_J?
whoever-lperl or somehting
Sir_Jwhere should it be ?
whoeversomewhere in the line starting with gcc
gcc foo -bar -baz -lperl
Sir_Jthis is not my app
whoeveradd it to the makefile
Sir_JI'm just trying to compile it
Botjeand? fix the damn makefile.
Sir_JBotje, oke
whoeverperl -pi -e 's/gcc /gcc -lperl /g' [Mm]akefile
f3ewhttp://t3.dotgnu.info/blog/yblr/offtopic-masterpieces.html @ Botje
whoever(backup :p)
loiicbuubot: you mentioned numeric, which is ?
Sir_Jwhoever, thanks
f3ewloiic, buubot is a bot, as the name says
loiiceck ok
whoeverloiic: use a regexp, perldoc perlretut
f3ewwhoever, Botje told him how to
Sir_JBotje, you right, it works
Botjewell, you could also just use Scalar::Util::looks_like_number to check if it's a number before you test with < and ><
loiici 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
whoeverif ($foo =~ m/^\d+$/) { do_stuff_if_number(); } else { do_stuff_if_not_number(); }
perldoc perlretut
(wasn't there a buubot command for that)
?
somianwhoever: you can ask buubot in #buubot
Casanusing 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?
actionsomian changes his nick to demondim-spawn
somianchanges his nick to demondim-spawn
whoeverCasan: are the adresses correct?
loiici settled for $server =~ m/^(0|1|2|3|4)$/
whoeverloiic: use $server =~ m/^[01234]$/; same result, better to read and i think it's faster, too

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 103 110 117 

IrcArchive