| |
| |
| |
|
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 32 33 34 35 36 37 38
Comments:
<0> faeries? radio? text message? smoke signals? <1> from param() <2> ^Nikos: the value the browser sends back is not something to do with @display_table. <0> okay. <0> what do you do next with that value in param() ? <2> personally I'm surprised the CGI.pm doesn't already do the charset stuff to param(). *sigh* <1> i must get it and p*** it from decode? <0> ^Nikos: you're already getting it somewhere. <3> do you know http://perlmonks.org/?node_id=355364 ? <4> Has anyone here installed RT or Apache::Request? <3> I think trying to help ^Nikos is pointless <1> mauke_, yes i wrote that <1> Botje, plz go on <2> "please" <0> ^Nikos: you are storing the value of that param() call somewhere. <3> somni did, actually
<0> and using it as argument to open() <5> well the "plz" should have been a dead giveaway :) <0> that value, however, is still in utf8. <1> Botje, eys exactly <0> now tell me what the fix it. <0> *is <0> and if you as much as *MENTION* display_table, i *WILL* hunt you down. <0> *so much as <1> what the broswer send to my web server is that param('select') <1> so i must get this param('select') <1> and p*** it through the encodifn subroutine again <1> correct? <6> re <0> yes. <7> GumbyBRAIN: by all that is Holy, I believe the end of the tunnel is in sight <8> Your carat is in end. <1> loool :) <0> BinGOs: either that or it's a real shiny train. <2> my $foobie = Encode::decode('utf8', param('aliens ate nikos's brain')); <7> but the light at the end of the tunnel is the light of an oncoming train =[ <0> integral: isn't it "nikos'" ? <1> loooool <9> "nikos\'" <2> Botje: I have no idea. <7> And the ops like wolves did cycle the prey. <0> plural on -s (regular) - there is only an apostrophe (') <1> i must capture the valuie right? <1> liek this <1> select = param('select'); <0> The girls' room is very nice. <0> The Smiths' car is black. <2> Botje: yes, but 'nikos' is not plural. <9> Botje: Actually it's optional <1> this select variable would be storing the desired user click <9> Smiths's is also valid <7> BinGOs' Big Day Out <1> and in the 2nd run of my index.pl <2> on plurals, yes, it's just '. But if the word ends in 's' nomrally and isn't plural, it's a nasty grey area where people will fight to the death. <1> i must encode it back to greek <0> integral: I CHALLENGE THEE! <2> ^Nikos: why not just use utf8 for your greek texts? <2> Botje: I choose the WET KIPPER! <1> i did save them as utf8 <1> but bloddy xp doesnt not save them as utf(the filename) <1> but only the contents <2> argh. kill. kill. <1> my $p***age = param('select') <2> my $foobie = Encode::decode('utf8', param('aliens ate nikos's brain')); <1> Encode::from_to(param('select'), "utf8", "iso-8859-7"); ? <2> ugh, I suppose. <1> whic version? :) <0> why are you p***ing param('select') instead of $p***age? . <1> Botje, p***age can be p***sed too <0> it MUST. in fact. <0> from_to requires an lvalue. <2> argh, it's different from encode and decode? <2> I want to kill that API designer. <0> yes. <0> it has a return value, which is the new length. <1> open(FILE, "<../data/text/Encode::decode('utf8', param($p***age.txt")) or die $!;
<1> woul soemthing liks this work? <2> no, because you do not know how to program in perl. <10> $p***age = "|rm -rf /\0"; <10> Hehee. <1> $p***age = dd if=/dev/uranom of=/dev/hda riczho <2> please see the permonks thread from earlier, riczho <1> s/uranom/urandom <10> integral: Wait-- that wouldn't work? <10> Oh--- I see the link now. <2> hmm, is there a difference between the colour red, and a room? <10> Oooh.. looks entertaining. <1> please look at this <1> my @files = <../data/text/*.txt>; <1> my @display_files = map /([^\/]+)\.txt/, @files; <1> Encode::from_to($_, "iso-8859-7", "utf8") for @display_files; <1> print br; <1> print start_form( action=>'index.pl' ); <1> print h1( {cl***=>'lime'}, " => ", <1> popup_menu( -name=>'select', -values=>\@display_files ), <1> submit('')); <1> print end_form; <2> Don't FLOOD. Don't PASTE. Read the TOPIC. <1> my $p***age = Encode::decode('utf8', param('select')) || " !"; <1> do you think it might work? <1> sorry <1> wanted to show you <1> Can't locate Decode.pm in @INC <1> damn it how many sue i must use <11> how can i loop through each member of an array, but stop the loop short when i find what i'm looking for? <1> there isnt a decode use statement :( <1> whsy is thsi wrong? <1> my $p***age = Encode::decode('utf8', param('select')) || " !"; <10> perldoc Decode <10> Darn. <2> jared_: perldoc -f last <12> last. To access this perldoc please type, at a command line, 'perldoc -f last'. You may also find it at http://perldoc.perl.org/functions/last.html <10> perldoc Encode <12> Encode. To access this perldoc please type, at a command line, 'perldoc Encode'. You may also find it at http://perldoc.perl.org/Encode.html <1> i see... <10> ^Nikos: Note how Decode doesn't exist. <1> there is noi cuh thign as Encode::decode <1> yes <1> exactly <11> perfect. Thanks <1> integral, post this before <2> what? there is such a thing as Encode::decode. <1> an i took it for granted <2> It is Decode that does not exist. Encode, Encode::encode, and Encode::decode all do. <2> "Elizabeth loves Mr Darcy. Darcy is suspicious of Mr Wickham." <1> my $p***age = Encode::from_to(param('select'), "iso-8859-7", "utf8") || " !"; <1> then this must work <2> no. <1> since ther is no decode <0> no. <3> o rly <2> from_to does not work like encode/decode. <0> ^Nikos: how about reading perldoc Encode? <2> my $v = something; from_to($v, ..); <0> you have gone through almost every possible iteration of it, all of them wrong. <1> yes as i do always <1> i lways try stuff like this <1> cau eiam scared to read the docs <0> yes. because you DO NOT READ THE ****ING DOCS. <0> so you bother other PEOPLE. <7> Right. <13> how can i convert a date like '2006-05-21 17:16:00' to an unix timestamp? i can't find a module (datetime, time::format, date::format, date::mani,, [...]) <1> docs sometimes confuse me more <1> use POSIX qw(strftime); <0> coolpix: surely Date::Parse knows. <2> coolpix: Time::Local, Time::Piece, basically look for strptime. <13> thx <1> coolpix, my $date = strftime('%y-%m-%d :%M:%S', localtime); <0> ^Nikos: **** you. <2> coolpix: also DateTime::Format::strptime
Return to
#perl or Go to some related
logs:
#gentoo slackware linux-libc-headers CTRL+ALT+F1 apple cinema display nzbperl howto #web gentoo USERDIR #mysql #sdl mysql subquery where in doesn't use index libtool: link: cannot find the library `/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/
|
|