@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> Hey all, any easy way to keep track of time in perl? Such as to make a stopwatch or similar?
<1> umm
<1> time(), would've been my first guess?
<0> That would work but I was hoping for a slightly easier way as with time() I'll have to constantly reference it from the initialization to the continued time() value and compare by seconds :)
<0> I was kinda hoping with TIMTOWTDI there would be an easier way :)
<1> alarm() i suppose
<1> dependant on system though
<0> Well my plan is to put it into a CGI script :)
<1> time() it then
<1> its not as though its too difficult to setup a trap
<0> Looks like Time::Elapse may work though



<2> ok, let's say I want to store 10 strings in some variable (array, hash, something) and pull one out at random. Any hints on how I might do that?
<3> perl -le'@a=1..10; print $a[rand $#a]'
<2> thank you
<3> i love perl
<2> perl is fun
<3> see perldoc -f rand
<2> nothing unexpected ther
<2> e
<3> rgr
<2> on a side note, would "@a = qw (some things here)" work?
<3> yes
<4> Any body
<4> ?
<4> Do you speak perl
<4> ?
<3> perl -le'print "yes"'
<4> Hello
<3> perl -le'print "hello"'
<4> are you italian?
<3> perl -le'print "nein"'
<4> Deutch?
<3> perl -le'print "do you have an on-topic question?"'
<4> like what;
<4> Hi Mariandroide !
<5> hi
<4> Do you write perl scripts or CGI?
<5> I wonder why I'm here twice =)
<4> me too!
<4> Who writes perl or CGI Here?
<5> I do some.
<4> Do you about unix shells or bash shell?
<5> I know some about it...
<6> Perl, just ask your actual question and if people can help, they will.
<4> I am writing good things for perl and i am learning unix, CGI, and Apache Now.
<5> but my workaround for sh is usually perl =)
<4> I am sure we can do anything with perl
<6> I write shellscripts all the time. They usually look like, 'export PERLLIB=/some/path ; perl /some/other/path' ;)
<4> I made a big successful program from perl and gave it a good GUI and it is selling.
<4> I am worhing for windows with Win32::GUI
<4> I have been looking for someone who writes perl all the time
<4> we can share ideas about this great language...
<4> use Win32::GUI;



<4> use strict;
<4> use arnings;
<4> hi Nibble
<7> Perl : um, if you need to post code, try pastebin.com
<5> so... I lost the question a bit =)
<4> What question?
<8> alright, I'm out for a drink
<7> nibble : toss one back for me, too
<8> you guys have fun
<4> Is Nibble is that part of the breast?!
<8> yea
<4> I am newly married and it tastes very deliscious!!!
<8> I will mrplaydoh.... I will ;)
<4> Do you write Perl Mr. Nibble?
<8> Mr Nibble is now gone
<7> lol
<4> lol
<8> Mr playdoh and Mr Mariandroide will answer your further questions
<4> I can answer any perl questions too...
<5> Bye Mr Nibble =) It's Ms Marandroide =)
<8> and its Mis Nibble
<8> Miss that is
<4> Android means Manly in Greek or Latin!!
<5> Confusing huh? =) But you caught the right reference, it had nothing to do with metal men =)
<4> why nobody is talking/
<7> because this is a channel for perl help and not idle chat?
<7> and, btw, taking the nick 'perl' is a surefire way to label yourself a lamer
<7> just an fyi
<4> Okay but we all here knows perl and we are waiting for anyone to ask!!
<4> GTG and will be back soon I got to distribue my program.. Bye
<9> "index($e->mode,$mode) eq FALSE" what can i use instaead of FALSE?
<6> VT`, what are you trying to do exactly?
<6> VT`, If you're trying to check the trueness of index() return value, just if(!index($e->mode,$mode)) would do it. You don't need to eq anything.
<3> index returns -1 for a non-match in that situation
<3> 0 would be positive match on first char
<6> Ah.
<6> But that would be == -1
<6> Not eq
<6> Kind of.
<10> Doesn't change the way the if statement evaluates it.
<6> There are obscure cases in which eq doesn't give the right answer for numbers.
<6> And an == is needed instead of !func() for -1 failure values, since -1 is not false.
<10> huh? Isn't false equated as -1?
<11> negative integer values usually indicate a particular error
<11> 0 http://www.foo.be/docs/tpj/issues/vol4_2/tpj0402-0002.html
<11> grr
<6> 0, "", and () are false, iirc.
<6> Everything else is true.


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

#kl
#kl
#chat-world
allnitecafe dalnet
#allnitecafe
#kl
liar liar pants on fire lock stock
casafever
#india
#allnitecafe



Home  |  disclaimer  |  contact  |  submit quotes