@# 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



Comments:

<0> actualize your feelings, actually bore into yourself with a, wait, no, that'd hurt
<1> how can I "break" to next step in for loop ?
<0> next iteration of loop, or out of the loop?
<1> next iteration of loop
<0> next is your friend
<0> "next"
<1> thanks :)
<2> merlyn, any alternative to is_utf8 for perl 5.6?
<2> oops
<3> diff only compares two files. How do I get it to compare two string?
<3> cd bash
<0> merlyn, do you think it would be bad for me to read more perl source code?
<4> Hey all, ***uming I'm parsing through a file line-by-line with foreach(), is there an easy way to do multi-line regex string matching?
<5> [repost] So, does anyone have a suggestion for a good RPC framework?
<6> how to I include the functions in one perl file into another?
<6> What is the perl equivalent to #include in C, or "source" in bash?



<0> gushi, don't do it line by line, and use the /s (treat string as single line) modifier for the regex
<5> Martyn: there's the "require" function
<0> Martyn, "use Perl::Package::Name;" and read perldoc -f use
<7> use. To access this perldoc please type, at a command line, 'perldoc -f use'. You may also find it at http://perldoc.perl.org/functions/use.html
<4> jsn, what's a good way to read such a file, then?
<0> what's the perl page which will teach someone how to set the input record separator?
<8> 'perldoc perlmod' would be a good starter too, Martyn
<7> perlmod - Perl modules: how they work. To access this perldoc please type, at a command line, 'perldoc perlmod'. You may also find it at http://perldoc.perl.org/perlmod.html
<8> jsn - perldoc perlvar
<7> perlvar - Perl predefined variables. To access this perldoc please type, at a command line, 'perldoc perlvar'. You may also find it at http://perldoc.perl.org/perlvar.html
<4> probably perlvar
<2> Encode requires perl 5.7.3, but I need to check charset on perl 5.6.1.
<8> why do you need to check charset on 5.6.1?
<8> eek, afk, shower time... running late
<4> Okay, jsn -- but that leaves me open to other problems.
<4> Basically I'm reading headers in forwarded emails (so they may be wrapped when normal email headers should not be).
<2> i'm in an environment where I cannot upgrade perl, hence 5.6.1. I need to check charset because if the string I get is latin1, I need to convert it to utf8
<9> bluesmoon - it won't be "latin1" or "utf8" on 5.6.1 :)
<9> it'll just be "octets"
<2> merlyn, ah
<10> You can't ask the administrator to upgrade?
<9> and doing something sane with that probably won't be very fun
<2> eggzeck, it's not the administrators, it's the other packages I need to work alongside
<0> gushi, There are many perl modules for handling e-mail, don't invent one to read the headers.
<0> gushi, I can't name any of them that might be particularly useful to you, but use search.cpan.org and look for mail
<2> for more context on the problem: I have a bunch of utf8 text encoded as JSON. I used the JSON module to convert these to a perl datastruct
<4> jsn: most of them are still useless to me because they're designed to handle raw emails, not emails which have been wrapped, quoted, and forwarded.
<4> I'm basically writing a sorter for an abuse@ box.
<11> abuse: /dev/null ?
<4> which *should* recognize certain standard reports, but be flexible enough to allow the admin to take action otherwise.
<0> /dev/null is full, sorry
<11> damn!
<11> uhh, /dev/zero?
<4> thing is, when juno forwards you a mail -- a header that's on one line gets wrapped.
<12> what is /dev/zero for?
<11> generating zeros
<12> obviously but why
<9> cat /dev/null >output # generates an empty file
<12> something to do with C dereferencing them?
<9> cat /dev/zero >output # never stops
<13> EvanCarroll: to fill your brain!
<11> :>/dev/null # no useless cat!
<12> I mean why zeros?
<12> why not just rands or something if you need lots of trash
<11> unless you set 'noclobber' or use a bizzare shell, mind you
<9> dd if=/dev/zero of=my_file bs=1024 count=1024 # generate 1 meg empty file
<0> rands are tougher than zeros
<4> Evan: for use with dd and creating a "Clean" image.
<12> blondie: You missed my castle rant.
<0> really tough if you ask some peopel
<12> gushi: hrm =/
<11> or wiping the MBR. /dev/random might produce something bootable (I want pictures)
<13> EvanCarroll: I miss nothing! (if I read my logs)
<12> blondie: Don't even pretend like you don't have my messages redirected to your pager.
<12> Because I am not buying it.
<13> :|
<13> pager? how quaint :P
<12> Bionic implants?
<11> yeah, what's a pager for? just memorize the music
<13> nah, people just use sms here
<12> So here I am at work, watching MacGuyver, and wondering which writer decided to have him fight bad guys with fishing poles.



<9> sms = stupid message system
<14> cranking out code!
<12> Pure brilliance.
<14> whee!
<13> merlyn: why?
<12> I can't wait for bad guys to try and attack me when i'm fishing now.
<12> I'll kill them by casting fishing weights on top of their heads.
<12> blondie: I think merlyn is calling you stupid!!!
<13> (I don't really use it)
<12> quick retort about not having been sued by the state!
<12> oh fine. what a boring crowd today.
<0> use PDL; my $pdl = zeroes 1024,1024; # 1024 x 1024 2d array of zeros
<12> I'm going home, I'll get my overtime later!
<9> & enroute burbank to BUR to PDX thence home...
<1> how can I move file?
<1> not `mv` e.t.c., but via perl ?
<11> File::Copy
<1> ah, um, thanks
<11> with conviction!!
<1> what? :)
<1> big thanks master guru
<1> .)
<1> it's ok?:)
<11> well, I'm no master guru, but okay
<6> If I want to use a function in myfile.perl, can I use "do myfile.perl" safely?
<11> perhaps. Most folks 'use lib' and write proper modules these days
<15> Eh, how do I round up a number to the nearest integer?
<0> POXIS::ceil
<0> POSIX, even
<0> man POSIX
<11> int and add one
<6> thrig : Writing a proper lib is a bit of overkill for this particular lib .. I have three programs that use a set of functions, and I just don't want to duplicate the code.
<0> thrig: not true for 2.00
<11> that depends on how near you consider that number
<0> Martyn, that sounds like the perfect time for a lib. All you _absolutely_ need to do is say "package MyPackageName;" at the very top and and a line "1;" at the very end
<11> Martyn: most folks 'require' something in, rather than 'do'
<0> Then "use MyPackageName;" in all three modules
<16> greeting
<16> where can i find the purl bot?
<17> rabidphage: why?
<0> rabidphage, did you look under the couch?
<16> i'm a noob just being curious
<17> do you mean the source code?
<16> no i've read somewhere that there's a bot on irc that speaks based on titbits collected from the channels..
<16> its like perl speaking for itself
<18> GumbyBRAIN: kill the mortals
<19> Sold the shares i had zerg. They'd destroy these pathetic mortals.
<17> there's a purl in EFnet/#perl
<0> I don't know what rabidphage is talking about, but GumbyBRAIN does.
<17> and Perl-fu in EFnet/#perlhelp
<16> okies thanks guys
<17> workbench also watches the channel, but it doesn't speak
<18> cube it
<20> Will this universe allow you to set him on fire with a magnifying gl*** and listen to him go "yipe yipe yipe"?
<0> If there was a religion that said red paint was evil I bet the demand for red paint would dramatically decline and people with red houses would be reviled.
<0> and art would have a lot less red in it
<15> And?
<0> if you didn't tell some people, and they came and visited the anti-reds, they'd be confused, and probably chuckle
<0> and maybe even wear red
<0> and go "booga booga"
<1> how can I make "tail" via perl ?
<0> Are you taking a test, X7x7a7x7x7 ?
<15> is there a function to print lists easily?
<15> just for testing
<0> There is the Data::Dumper module which will print out most anything.
<17> samu: print
<1> jsn: nope,) I am writing a script .)
<1> for server :)
<0> then you probably just want to use tail
<21> jsn: even anon subs!
<21> yay!
<1> ok
<21> X7x7a7x7x7: your nick ****s.
<17> maybe it's a pack template


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

fluxbox gnome-settings-daemon xfce-mcs-manager
#css
#perl
#linux
#debian
suse9.3 xinetd not running
configure sudo debian
blackdown not a bzip2
#perl
#mysql



Home  |  disclaimer  |  contact  |  submit quotes