| Dr-Linux | so i can't use esle with foreach? :S |
| whiteghost | hey |
| mauke | soloman: an object |
| q[ender] | Dr-Linux, that would not make sense assuming you made a typo otherwise it depends what the fuck esle is :) |
| mauke | soloman: why do you think you need to call a method? |
| Dr-Linux | q[ender]: but i want if it can't find "OK" line, it should send me an email, that's why i'm using else |
| mauke | Dr-Linux: maybe you should start at the beginning. "hello world", etc |
| soloman | mauke: it's convenient for me. $smth->curr_date stores unix_timestamp date. $smth->curr_date->convert_date converts this date |
| Dr-Linux | mauke: that's already i started |
| mauke | soloman: how is that convenient if it doesn't work? |
| phroggy | is 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 |
| soloman | mauke: it would be convenien if it worked :) |
| mauke | convert it into what? |
| soloman | mauke: 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/ |
| mauke | uh, no what is convert_date supposed to do? |
| soloman | mauke: it is supposed to make some conversions on date and it should be in a method |
| mauke | what conversions? |
| action | amnesiac converts mauke |
| amnesiac | converts mauke |
| Daveman | :) |
| soloman | mauke: calculates something depends on activity. mauke: it doesn't matter just a function |
| mauke | if it's a function that calculates something, it shouldn't be a method |
| jpeg | ask |
| mauke | (because perl numbers aren't objects) |
| integral | perldoc autobox |
| mauke | pff, just do $x->num::method (requires a core patch, though) |
| soloman | mauke: 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? |
| warpzero | how do i get a coderef to a subroutine of a subclass |
| mauke | soloman: 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 $_; } |
| buubot | eMish_: 1 2 |
| phroggy | a 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. |
| warpzero | mauke, because i'm inheriting a routine that does stuff with codrefs to overloaded routines |