| Dr-Linux | hi guys http://phpfi.com/220621 << any body can help me, what i'm doing wrong with curly brack.. ? |
| buubot | The paste 220621 has been copied to http://erxz.com/pb/1926 |
| Chris62vw | falesca, what kind of device? Dr-Linux, that is so obvious. look: print "ext: $ext $line\n"; } remove one of those brackets |
| mauke | Chris62vw: wrong |
| Dr-Linux | :S |
| Chris62vw | wait |
| mauke | Dr-Linux: missing ; in line 5 |
| Chris62vw | what the fuck?! |
| soloman | hi |
| Chris62vw | I better read the whole program |
| Dr-Linux | mauke: yeah, i know that, that's ok |
| action | CPAN upload: HTTP-Body-0.9 (+++ ) by AGRUNDMA |
| CPAN | upload: HTTP-Body-0.9 (+++ ) by AGRUNDMA |
| mauke | Dr-Linux: no, it's not it's a syntax error |
| Chris62vw | ahh |
| mauke | http://erxz.com/pb/1926?ln=on&tidy=on&hl=on&submit=Format+it%21 |
| Dr-Linux | mauke: i mean that's only in pastebin, but i correct it already |
| mauke | ok, then fix the indentation and the structure of the code |
| soloman | can someone help me? I have an object with method curr_date. $smth->curr_date prints '20070303055126'. But also I need to call convert method like this: $smth->curr_date->convert_date to convert the date |
| mauke | foreach { } else { } doesn't make sense |
| soloman | how to do it? |
| Dr-Linux | mauke: yes, please help me with that |
| mauke | soloman: $smth->curr_date->convert_date |
| Dr-Linux | mauke: if i remove else {} , the it monitors just fine and print "OK" line |
| Daveman | Hi mauke |
| soloman | mauke: but how should i use convert_date? $smth->curr_date prints current date |
| Dr-Linux | mauke: but i want if it doesn't find OK, that's mean there is something wrong and it should send me an email |
| mauke | soloman: irrelevant. what does it return? |
| Dr-Linux | mauke: however it's sending me emails, but everything is okey, |
| sili | somian: stop being a fascist |
| q[ender] | did someone mention fascism? |
| soloman | mauke: curr_date returns current date.in unix_timestamp. convert_date returns date converted from what current_date returned |
| mauke | soloman: that doesn't make sense if it returns a number, how can you call a method on it? |
| soloman | mauke: what should it return to call a method on it? |