#perl - Tue 27 Mar 2007 between 15:10 and 15:26



Dr-Linuxso i can't use esle with foreach? :S
whiteghosthey
maukesoloman: an object
q[ender]Dr-Linux, that would not make sense
assuming you made a typo
otherwise it depends what the fuck esle is :)
maukesoloman: why do you think you need to call a method?
Dr-Linuxq[ender]: but i want if it can't find "OK" line, it should send me an email, that's why i'm using else
maukeDr-Linux: maybe you should start at the beginning. "hello world", etc
solomanmauke: it's convenient for me. $smth->curr_date stores unix_timestamp date. $smth->curr_date->convert_date converts this date
Dr-Linuxmauke: that's already i started
maukesoloman: how is that convenient if it doesn't work?
phroggyis it possible to build DBD::mysql on a system on which mysql was compiled with the --without-server option? I'm getting this error:
dbdimp.h:23:45: mysqld_error.h: No such file or directory
solomanmauke: it would be convenien if it worked :)
maukeconvert it into what?
solomanmauke: but if go another way and return an object on $smth->curr_date does it mean I should create a standalone module only for data storing and converting?
s/data storing/date storing/
maukeuh, no
what is convert_date supposed to do?
solomanmauke: it is supposed to make some conversions on date and it should be in a method
maukewhat conversions?
actionamnesiac converts mauke
amnesiacconverts mauke
Daveman:)
solomanmauke: calculates something depends on activity.
mauke: it doesn't matter just a function
maukeif it's a function that calculates something, it shouldn't be a method
jpegask
mauke(because perl numbers aren't objects)
integralperldoc autobox
maukepff, just do $x->num::method
(requires a core patch, though)
solomanmauke: but if I need exactly like this: $smth->curr_date->convert_date. How to do it? Create method curr_date that returns object? And convert_date is a method of this object?
warpzerohow do i get a coderef to a subroutine of a subclass
maukesoloman: you don't need it exactly like this
warpzero: that sounds evil. why do you need that?
eMish_eval: for(1,2) { for(3,4) { }; print $_; }
buuboteMish_: 1 2
phroggya few minutes of Googling may have solved my problem. Apparently mysqld_error.h isn't installed when you compile --without-server unless you also compile --enable-thread-safe-client so I'm recompiling with that option.
warpzeromauke, because i'm inheriting a routine that does stuff with codrefs to overloaded routines

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 116 

IrcArchive