| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Comments:
<0> '08' <0> my @yaxis = ('00', '02', '04', '06', '08' <0> that works <1> Just curious what perldoc I would look in for type casting? <2> Types be damned. <1> Just need to be able to cast an integer to a boolean <2> Just use it as such. <1> b0at: yeah, and then perl bitches about it :) <3> perl beee0tches <2> I'm going to have to see some code, sir. Please step out of the vehicle. <4> dlynes_home: no, it doesn't <1> [Sun May 14 12:10:14 2006] customerdetail.cgi: HINT: No operator matches the given name and argument type(s). You may need to add explicit type casts. <4> that's not a perl error <2> By the way cgi ne Perl. <2> That could be a freakin' shell script puking PHP through Python <1> It's an error being issued from HTML::Template, which is perl
<5> ... <2> hm <1> i don't use php or python <1> It's all pure perl <2> It was just a grotesque example, don't worry. There's no such thing as PHP. <1> b0at: I'm well aware of that <2> heh <1> That's the whole reason I'm using perl <1> Perl with HTML::Template seemed a hell of a lot less h***le than PHP <1> Besides...it's much more natural <1> So, how would I do this 'explicit type cast', then? <6> HTML::Template's ugly <1> I know how to do it in C/C++/Java, but not in Perl <2> dlynes_home: There is no such thing in Perl, and it's not an error coming from Perl itself but something else in the code you're using. <7> dlynes_home: my best guess (based on google) is that you are using Postgres and that you have some sort of error in your query. <1> Hrm...yeah...maybe it's a postgresql error then <2> Ah, there you go <1> I was thinking it was an html template thingy <7> dlynes_home: it is not an error outputed by Perl or by HTML::Template. And that's the only information you gave. <5> I was so confused <7> http://search.cpan.org/grep?release=HTML-Template-2.8&string=operator&i=1&n=1 : Grep of HTML-Template-2.8 for "operator". : Sorry, no matches found. <8> Ani-_'s url is at http://xrl.us/mgfw <1> Because one of the variables on the page is a boolean, and it seemed to be complaining about converting an int to a boolean <1> sorry about the confusion <9> Daveman: I am minutes away from finding out if I made ideal Basmati rice, too. <10> hello <11> hi NikosGr <10> is this wrong as a state,emt? <11> no, you can say hello <10> my $authname = param('authname') or 0; <9> HELLO <10> hello Chris62vw :) <10> hello Yaakov <11> yes, you want my $authname = param('authname') || 0; most likely <7> Oh no... not you again. <10> whats the problwem ith or ? <11> the || short circuts quicker than or <11> or and || have a different precedence <9> It binds more tightly. <11> you might want to do: my $authname = param('authname') or call_some_function; for example <10> so as ia hev ti is wrong? <11> but using 0 there is kinda silly <11> the outcome won't be what you expect if the param authname is falso <10> i just want o say <7> depase: my $authname = param('authname') or 0; <11> depase: my $authname = param('authname') or 0; <7> deparse: my $authname = param('authname') or 0; <12> ((my $authname = param('authname')) or 0); <7> deparse: my $authname = param('authname') || 0; <12> (my $authname = (param('authname') || 0)); <10> that if thereisnt a param for authname <11> damn my irc client :-) <7> Chris62vw, stop copy pasting my typos! :) <10> then still get aa zeror value of a rstring sayign not param yet <11> I meant to paste it and fix it, but the newline hung on :-) <10> :) <10> (my $authname = (param('authname') || 0)); this is ok? <7> TRY. <1> Yeah...it was just a stupid postgresql problem...sorry about that <11> eww. less parens!
<11> NikosGr, I already gave you good code <11> 12:58 <11> yes, you want my $authname = param('authname') || 0; most likely <11> lots of parenthesis looks ugly. it's better to know precedence well in my opinion <7> Chris62vw, don't worry. You are going to do nothing else then repeating that for the next hour (if you are lucky). <11> of course parenthesis are handy once in a while <11> Ani-_, oh, I see... I'm going to take your unspoken advice then :-) <10> iam confused <10> which verison? <10> (my $authname = (param('authname') || 0)) <10> or <11> NikosGr, try it <10> my $authname = param('authname') || 0; <9> NikosGr: Do you speak English well? <10> i am <10> no quite <11> then if you try it, you will know! :-) <7> Don't say that I didn't warn you. <10> i dont understabnd the differnce <13> if i wanna read an email (in pop3 session) without retrieve it, i can use the TOP command, but how can i know how many lines it has? <10> the first <14> :) <15> Gandalf21: that's ludicrous... just retrieve the message but don't delete it <14> Chris, got any interesting summer plans? :) <13> no i have to use the TOP command <10> can youe xpalin this please? it works though! <10> :) <10> (my $authname = (param('authname') || 0)) <10> this one <15> Gandalf21: again, that's ludicrous... but there's no way around it <11> Daveman, not really <11> how about yourself? <14> Yeah :) <11> oh? <14> A lot of traveling, and visiting friends back in hometown :) <11> where's home? <14> osaka <11> really? cool <11> lots of money to travel in JP eh <14> heh <10> when i changes all my website sscipts to utf-8 <10> date aint appearign correclty <14> and around the country <10> but liek this <14> I should stop in NV, eh? ;) <10> ?????? 14 ???, ??11:05 ?? <10> why? <16> how do you reverse a number (mind has melted) <11> reverse() <14> heehee <17> eval: my $test = 'abc'; print $test[0]; <12> bnovc: Return: 1 <16> Chris62vw: I'm telling you bot on you! <17> eval: my $test = 'abc'; print $test{0}; <12> bnovc: Return: 1 <11> Daveman, stop by and pay my taxes, I mean, gamble :-) <7> DoctorMO: 1 / number ? <17> is that possible? <14> haha ;) <11> perlbot reverse 12345 <18> 54321 <11> why lookie there :-) <16> sorry my bad, make a positive number a negative number. <11> bnovc, use substr() to print out parts of a string. you're trying to do it the C-way <11> DoctorMO, multiply by -1! <17> c way for the win? <11> DoctorMO, multiplying a number by -1 flips its sign... :-) <7> Chris62vw, substract the number twice from the original number? <16> Chris62vw: an entire multiply instruction?! <7> *DoctorMO ofcourse <17> eval: my $test = 'abc'; print substr($test, 0, 1); <12> bnovc: aReturn: 1 <15> eval: $str='abc'; @str=split //, $str; $str[0] <12> pravus: Return: a <7> eval: $x=5;$y="-" . $x;$y+1;
Return to
#perl or Go to some related
logs:
#php #lisp #perl #css #perl #linux #oe TIRED OF WAITING FOR FUCKING NOTHING pam_krb5afs slow modconf not found ubuntu
|
|