| |
| |
| |
|
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
Comments:
<0> so hey what is a god way to learn perl? <0> I have a windows xp desktop <1> tilrman: it's not exactly efficient either ;) <1> I always forget about IO::All. It's sort of cool <2> I know that we can do: @filedata = (<INFILE>); but not $filedata = (<INFILE>); <3> get cygwin, shemale_magic <2> the latter only gets first line <4> well, i defined effciency a little bit <5> Wyleyrabbit: that's why they're setting $/ to undef <2> StoneToad, ahhhh <5> if %/ is undef, "one line" is the same as the whole file <5> normaly it's "\n" <6> Wyleyrabbit: check 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 <5> (actualy I think that's wrong, it's something weird to deal with \r\n stuff... but you can pretend it's just \n ^_^) <3> shemale_magic, you should try linux though, it's free, and it's easy to encrypt you r gigs of porn!
<5> using local makes it so you dont have to worry about what it was origionaly, it automaticly reverts when you leave the block <3> eval: $/ <7> bluebeard: Return: <2> on winxp, best way to encrypt yer porn is Truecrypt! <3> eval: print $/ <7> bluebeard: Return: 1 <3> strange. <5> eval: print "[$/]"; <7> StoneToad: [ ]Return: 1 <0> encrypt porn? <1> bluebeard: the bot sanitizes its output so that it doesn't screw up IRC <0> heh <3> eval: print hex($/) <7> bluebeard: 0Return: 1 <5> eval: print ord($/); <7> StoneToad: 10 Return: 1 <1> eval: [map ord split //, $/] <7> hobbs: Error: Not enough arguments for map at (eval 122) line 1, near "$/]" <3> eval: print chr($/) <7> bluebeard: Return: 1 <1> eval: [map ord, split //, $/] <7> hobbs: Return: [10] <0> its a mother ****er to get tomcat n apache n redaht linux working together when you ignore redahts packager rpm and install mysql 5.0 <1> okay, yeah, just a \n. Of course :) <0> let em tell ya <0> there has to be an easier way to do things than using java <0> <--hence interest in perl mod perl etc etc <5> ah so it's just perl6 that makes it into something weird like (\r\n?|\n\r?) then? <6> StoneToad: no, it depends on the platform <3> shemale_magic, no, it's really now. <3> s/now/not/ <5> the person who started the whole line ending thing should be shot <1> StoneToad: it was probably a tty maker <3> indeed. <5> that's ok, bullets are cheap :D <6> Neither \r or \n are really correct on their own though .. \r would set you back to position 0 of the current line and \n would move you down a line. So the only one that actually makes sense is the mac-cl***ic <3> now why microsoft just doesn't switch over to \n is beond me. <4> i was under the biased impression that dos would use \012\015 as newline so that files could go straight to the printer <6> Or is it DOS that uses \r\n? <5> dos uses \r\n <8> Woosta: Stop thinking like a type writer <8> =) <9> Hi all, i use the exists command, i would like to know what its return if the key dont exist? 0 or false <5> part of the problem is that \r and \n have diff hex codes on diff boxes <4> dos is \r\n . . . but mac may be (have been) \n\r <3> tilrman, it was before that, it was back in the days of the 50s computers. <6> r3m: perl doesn't have a 'false' as such <3> from what I read. <5> so you have tot use \012 and \015 if you want to be really portable <5> r3m: 0 is false <3> eval: FALSE <7> bluebeard: Return: FALSE <3> hmm <1> \x0d and \x0a are nicer to read <6> eval: %x=(); print exists $x{foo} <7> Woosta: Return: 1 <5> hobbs: right, well, it's just a different way of saying the same thing :) <6> eval: %x=(); print ord( exists $x{foo} ) <7> Woosta: 0Return: 1 <6> heh .. so it's returning a null byte .. :) <1> eval: ord(undef)
<7> hobbs: Return: 0 <9> so if (exists($usagerident{usager}) == 0) { ... } <5> eval: print ord("") <7> StoneToad: 0Return: 1 <5> yea, so the same as "" <1> r3m: no, if (!exists ...) or unless (exists ...) <9> ok thanks hobbs <6> r3m: no need to compare it to anything .. if (!exists(... )) { ... } <5> r3m: perl is smart enought to do what you mean, most of the time :) <4> eval: paint_my_house(); <7> tilrman: Error: Undefined subroutine &main::paint_my_house called at (eval 122) line 1. <9> i can use !index too with index <9> ? <1> r3m: no, index is an odd one; it returns -1 on no match <9> ok <1> so use == -1 or != -1 <9> ok thanks ;) <5> it's cause if it matches the first place in the string, it's the 0th position <1> right <1> it still could have used undef, but it would have been annoying ;) <5> and "0 but true"? <1> or "0e0" for true zero and "0" for no match <5> you've been using DBI I see :) <1> but, like I said, annoying ;) <1> StoneToad: yeah, DBI is part of my life. <10> hmm i want to match a Carriage return. I am do a $x = <STDIN>; if ( $x =~ /\r/) { print "sucess";} <10> it does not match. <11> um, has anyone ever had a Microsoft Intellimouse make a loud popping sound (like a Pillsbury biscuit carton opening up), and then a squeaking liquid noise, like soda squirting out of a small hole? <11> wireless intellimouse <12> spo0nman: looks like you didn't enter a carriage return <10> mauke: It says "Enter" on the keyboard. I thought it was a carriage return. <10> mauke: or is it just \n? <12> just \n <10> mauke: hmm ... thanks. <3> it's sort of funny that comedy central did something to prevent people from leeching their videos for free, but since they're making it windows XP only, I have to leech it. <11> you shouldn't be using hacker operating systems! <11> thief! <3> http://secunia.com/advisories/11433/ <3> holy ****, that'd be a very skillful attack if anyone accomplished that. <1> that's a dumb design <1> I see the potential usefulness of that feature, but really, take your options from a whitelist or something :) <3> ya <3> still, VERY skillful attack <3> unless you're just destroying data, then you just set it to output to /dev/hda <3> well, then they'd need to be playing stuff in root. which is stupid. <1> or as a member of 'disk', which the default user is on a lot of consumerish systems <3> really? <3> like lindows? <3> hehe <3> that name makes me sad <1> hmm, nevermind. I'm in cdrom and floppy, but not disk. <3> I'm in users. <1> bluebeard: that name has been dead for a while <3> really? <3> copyright issues? <3> I googled it and get linspire. <1> bluebeard: not exactly. Microsoft sued, realized they had no chance to win, and settled -- they essentially bought the name out <3> hahaha <1> bluebeard: MS gave Robertson's company 24 million dollars, and they changed their name to Linspire. Which is still a bad name ;) <3> I just loled <3> wow, microsoft accidentaly funded the move away from windows as a desktop operating system. <13> you poor deluded fool. <14> deluded. <1> diluted. <14> geneology is a lie. <1> genealogy <15> Sorry. <3> who's deluded? <14> you's deluded. <3> why? <14> integral said. <16> SON OF A BITCH <16> These people are mentally retarded
Return to
#perl or Go to some related
logs:
#perl #openzaurus xp omitting directory bash truncicate
fglrx caught signal 11 #lisp #osdev #gentoo hd source capture #suse
|
|