Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#perl

10 October 2007


Total 40 pages. You are browsing page 1/40.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Wed Oct 10 00:00:05 2007
00:00 <****> I did forget to escape my paren...
00:00 <****> it doesn't work :(
00:00 <****> what doesn't work?
00:00 <****> what's the input?
00:00 <****> stryek_work++
00:01 <****> when I print $content lines like these, "( ( String[] ) ( ( ValueObjectTupel ) valFlagContatoPrincipal ).object1 )[0]," are still in output
00:01 <****> yeah, it's because of you way you read inpt
00:01 <****> what is wrong with that?"
00:02 <****> you want $content =~ s/whatever//m ... the m makes it treat the string as more than one line
00:02 <****>) { s/whatever// } though
00:02 * jettero wanders off
00:04 <****> thanks!
00:04 <****> :))))
00:04 <****> :)
00:04 * jettero unwandered off
00:09 <****> why so much oo perl stuff now if perl not an oo lang?
00:09 <****> Who said that?
00:10 <****> Perl isn't one of those languages with the OO stick up its ass, where every single goddamn thing needs to be an object and OMG U R VIOLATIN ENCAPSULATION?
00:10 <****> But it's certainly got an object system.
00:12 <****> it's got too many
00:13 * CPAN upload: POE-Component-SNMP-Session-0.07 by RDB
00:13 * CPAN upload: DBIx-InterpolationBinding-0.04 by LUKEROSS
00:13 <****> qw( all ). However, a warning is not calling my sub die function. How can I do that?
00:15 <****> merlin_, 'llo
00:15 <****> try a __WARN__ handler
00:16 <****> hi guys
00:16 <****> anno-: the problem solver
00:16 <****> anno-, thanks, I'll try that
00:16 <****> i ve got a .txt file in windows
00:16 <****> i donno how it's saved i m not so knowlede about utf8 etc
00:17 <****> i ve read from this file and created another .txt for writing after making some alterations but there are some awkward characters
00:17 <****> square shaped characters to be more precise
00:17 <****> why does that happen ?
00:28 <****> j #kwiki
00:28 <****> fail
00:30 <****> eval: $_="merhaba ben"; 's/\s+/ /'
00:30 <****> TrueFX: s/\s+/ /
00:30 <****> eval: $_="merhaba ben"; s/\s+/ /;
00:30 <****> TrueFX: 1
00:30 <****> eval: $_="merhaba ben"; s/\s+/ /;$_
00:30 <****> TrueFX: merhaba ben
00:34 <****> eval: $_="merhaba ben";y/ //s;$_
00:34 <****> dkr: merhaba ben
00:36 <****> hiya all, i have this input file http://pastebin.com/m11f360b3 and i need to split on every block of data, every line that starts with | is a new string in the array, am i wrong to do this? @foo=split(/\|[A-Z][A-Z]\|/,$foo); I want those delimiters in there
00:36 <****> foxray: The paste m11f360b3 has been copied to http://erxz.com/pb/4660
00:43 * CPAN upload: POE-Component-Client-Stomp-0.03 by KESTEB
00:46 <****> How does the theory behind display 1-10 results work with perl/CGI?
00:46 <****> is it that an array exists.. 0..9 is displayed?
00:48 <****> is there a reverse engineering channel ?
00:48 <****> i ve got a .dat dictionary file i need to read from it
00:49 <****> utopia_: eh?
00:49 <****> Somni, you know when you see on a website Displaying '1-10 results'..
00:50 <****> how is that done? with an array and a loop?
00:51 <****> you want to page through a data set?
00:53 <****> how it's done varies on where the data comes from, but it's a simple matter of math
00:54 <****> the user passes a page number, and you have a number of items per page (perhaps that's passed, too)
00:54 <****> hey
00:54 <****> hmm okay
00:54 <****> ill try implement it
00:54 <****> what port above 7000 does irc.perl.org listen on
00:54 <****> ?
00:55 <****> if your data comes from an SQL database then it's best to use LIMIT on your select
00:55 <****> I have a funny
00:55 <****> idea
00:55 <****> couldnt you put 'query 4532' in the code
00:55 <****> Is it where you stop hitting enter sporadically?
00:55 <****> then let the db look up the query to run on itself
00:55 <****> then no sql query going accross wire
00:55 <****> and no sql injection
00:55 <****> That's a terrible idea.
00:56 <****> Sorry, was that rude?
00:56 <****> oh?
00:56 <****> nah
00:56 <****> im big boy
00:56 <****> :)
00:56 <****> why is it a terrible idea?
00:56 <****> gavino1: SQL injection is a result of passing parameters that are not properly escaped; how does the database server know what your parameters are if you're just using a fixed query?
00:56 <****> SQL Injection is a problem that has been solved.
00:56 <****> Also what Somni said.
00:56 <****> oh?
00:56 <****> whats the solution?
00:56 <****> placeholders
00:56 <****> Prepared queries.
00:57 <****> IOW, make it someone else's problem. :)
00:57 <****> isn't what im talking about kinda a prepared query
00:57 <****> lol
00:57 <****> good to always be prepared!
00:57 <****> sure, but what does it gain you?
00:57 <****> It's like buffer overflows, everyone knows how to avoid them, yet the damn things still keep popping up because someone was too busy to listen.
00:57 <****> heh
00:58 <****> why prepare and store queries on the database end instead of the client end?
00:58 <****> I am asking myself if dbm::deep is viable
00:58 <****> hm
00:58 <****> Somni i don't rightly know to be honest.
00:58 <****> utopia_: http://search.cpan.org/search?query=Paginate&mode=all
01:01 <****> iank: like run-on sentences?
01:01 <****> oops, too long of a delay to be funny. :)
01:02 <****> I keep trying dbm-deep and I keep seeing it fall down...
01:02 <****> almost ready though


Total 40 pages. You are browsing page 1/40.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo