@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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> Kulrak, what are you talking about?
<1> hackeron_: all variables have values
<2> Kulrak: hahaha
<3> ofer0: I'm talking about GW!
<4> :p
<4> zomg teh gumbynet ;O
<2> w00t
<5> hackeron_ - undefined ones don't
<5> um, that was to mauke
<1> taeli: yes, they do
<1> undef is a value
<5> semantically it doesn't really work like that tho, does it?
<4> :D
<2> Daveman: http://www.gumbynet.org.uk/images/Gumbyator.jpg
<4> :D
<4> hahaha awesome



<1> taeli: how so?
<6> hackeron_: if (defined $var)
<7> resiak: triggers if there is my $var; or my $var = ''; earlier so not what I wanted, I'll just use if ( $var || $var == 0 ), thanks ofer0
<0> hackeron_, have fun
<8> defined is more elegant then $var || $var == 0
<0> izut, but it's not the same thing
<1> hackeron_: '' is a value
<6> eval: my $var; print ((defined $var) ? 'true!' : 'false!')
<9> resiak: false!Return: 1
<4> BinGOs, gumbynet is teh awesome!
<10> g'morning
<11> morning japhy
<10> blegh. DBD::mysql-3.0002 is not installing
<10> make gives a ****load of dbdimp.c errors.
<12> if I have a Perl package with a Makefile.PL, is there a way to specify the prefix where to install the files? for example, I would rather have the files installed in ~/lib instead of /usr/lib
<10> yes, the PREFIX=... option to Makefile.PL
<10> perl Makefile.PL PREFIX=...
<12> cool, thanks
<12> japhy: it installed in ~/lib/share/perl/5.8.4/, so is there a way to set the library path?
<10> how do you mean?
<10> perl prefers to be set up in a particular directory tree
<10> ~/lib/share, ~/lib/man, and ~/lib/lib probably
<10> oh, you mean, "how do I tell perl to look there?"
<10> you can set the PERL5LIB environment variable in your shell's start-up file to ~/lib
<10> and it'll know where to look
<12> cheers!
<10> you can also add a directory to look in with the -I command-line option to perl
<10> although I don't know if that can handle tilde expansion
<10> perl -I/home/yourusername/lib ...
<10> vs.
<10> perl -I~/lib ...
<0> perl -le 'print "Just another Perl h4x0r,"'
<0> bless() you all!
<13> hi. I've just been given a .pm file. How can i determine where the site packages are on the system? Thanks.
<14> Stonekeeper: perl -V
<15> hi, is here anyone who was using SOAP::Lite?
<13> thanks
<16> Stonekeeper, perldoc -V
<16> err
<16> perl -V
<13> cheers.
<17> hello
<18> hi
<18> how do I print an array to stdout without foreach?
<17> is anynone use pdf::API2 or Postscript::Simple here ?
<16> print @arr
<19> print "@arr"
<18> let me try
<16> print join($sep, @arr)
<19> but that's a loooooooooooooop :p
<1> print map "[$_] ", @arr
<16> but !~ /foreach/
<16> use Data::Dumper; print Dumper(\@arr)
<14> a_me: also for = foreach
<16> while ...
<17> I look for a pdf or postscript guru :)
<15> is there any way to add xmlns to SOAP-ENV:Envelope using SOAP::Lite?
<20> s-andy: not that i have ever seen
<20> at least, not without mucking with SOAP::Lite internals
<21> re
<21> anubidy from pm.org ?



<18> what mysql interface should I use?
<22> dbi ?
<20> a_me: DBI with DBD::MySQL
<23> DBIx::Simple? Cl***::DBI?
<20> do *not* use the native perl MySQL module
<24> is it possible to get a true connect timeout in IO::Socket::SSL? even with 0.97 it appears that $s = new IO::Socket::SSL(PeerAddr => '...', Timeout => ...); can be made to hang indefinitely
<25> pravus: Why?
<18> that is what I was using :(
<20> pipeline: what reason is there too? DBI will get you everything you need
<20> DBI is more common and standard imho
<26> DBI also helps keep you from 'locking in' to a particular database, which can be a very good thing if you grow.
<25> pravus: Oh, I figured there was some dire proviso about the native mechanisms. No doubt that DBI/DBD is more common.
<20> pipeline: no, but I know people that use it and then wonder why stuff doesn't work and why they can't really get support on it
<20> it's kind of like people using Net::IRC
<20> you can do it... it works... it's just not recommended
<2> w00t
<20> PoCo::IRC ftw!
<2> i had a sick idea the other night, when i was discovering the power of POE::Session postbacks
<2> concerning using Net::IRC with postbacks.
<2> then i had to go and bleach my brain.
<20> i haven't really looked at postbacks
<20> i think one of merlyn's articles used them, but i can't really remember how it all worked
<2> they are like callbacks.
<2> and Net::IRC is just a select loop with callbacks.
<20> i'll have to read up on them when i get more time to work on POE stuff
<2> a postback is just a POE-ified callback.
<1> eh? postbacks are just sugar
<1> I don't really see why there's a special method for it
<2> i ***ume to make sure they get enqueued the POE way.
<20> maybe so session requesting the callback could remain anonymous?
<20> i don't know... like i said i need to read about them
<2> anyways. i deserve flogging just for entertaining the idea of using them with Net::IRC >:)
<1> $session->postback($event, @args) <=> sub { $poe_kernel->post($session, $event, @args) }
<1> or am I missing something?
<18> if DBD::mysql::db do fails because a duplicate entry could I detect that without getting an error?
<10> what is the preferred way to write a URL in POD?
<10> E<lt>URL://GOES/HEREE<gt> ?
<27> how do i check if in a string is a defined word included ... ?
<27> <- regexdummy ;)
<10> xirjs: you mean, how do I see if a string has a specific word in it?
<27> japhy: yes
<10> well, you could use a regex like: if ($string =~ /\b$word\b/) { ... }
<10> but you'll need to be careful
<27> japhy: why?
<10> because $word might contain regex-specific characters
<27> $word is defined
<10> so you'd be better off with
<10> /\b\Q$word\E\b/
<27> no $word is everytime the same
<10> which will automatically backslash special characters
<1> japhy: L<>, I think
<10> xirjs: the other way would be to use the index() function
<10> mauke: yes, but are you suppose to put E<lt> and E<gt> around it?
<10> or is that primarily for plain-text?
<1> whoa, awesome perldoc bug
<1> perldoc -m perl
<10> xirjs: but index() doesn't care about "words", just sequences of characters. "this ****s" does not match /\bis\b/, but index("this ****s", "is") returns 2 (the position of 'is' in 'this ****s')
<10> heh, only because of the order in which perldoc searches for the files ;)
<28> ls
<1> but perldoc -l perl works
<28> Oops, darn misplaced alt+tab
<29> interesting
<1> anyway, my perldoc renders L<http://url>; as <http://url>;
<4> Greetings, friends :)
<18> any idea how I could handle DBD duplicate entry errors?
<30> GumbyBRAIN: Daveman is like your friend and stuff. take him out back and introduce yourself.
<4> :D
<30> a_me: there's some sort of handling of that in DBI.
<30> perldoc DBI
<16> don't submit conflicting information?
<30> eval: test
<9> Supaplex: Return: test
<31> or use INSERT IGNORE


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

#debian
suse enlightenment entrance sysconfig
#bash
how to start tomcat 5 on ubuntu already installed
tv ep info tcl
#linux
mylex dac960 ubuntu
#ubuntu
etch.iso
linuxgurl



Home  |  disclaimer  |  contact  |  submit quotes