#perl
29 October 2007
Total 33 pages. You are browsing page 1/33.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Mon Oct 29 00:00:11 2007
--- Day changed Mon Oct 29 2007
00:00 <****> And chomp *returns* whether or not anything with chomped.
00:00 <****> eval: my $foo = "asdf\n"; print chomp($foo); ''
00:00 <****> jagerman: 1
00:00 <****> jagerman: oooh ok
00:00 <****> its returning a val thats not the string
00:03 <****> jagerman: thanks a lot for the help
00:04 <****> Is it working now?
00:04 <****> just to make sure it wasnt any other part of the script, i'm testing the file separately. still,
00:07 <****> 'foreach(reverse sort keys %seenFiles)' does this mean that the %seenFiles hash is now ordered in numberically descending order of keys?
00:08 <****> Don't do 'reverse sort', just do: sort { $b cmp $a } keys %hash
00:08 <****> jagerman: yes sir
00:08 <****> Mordecai1: And no, it loops through the list of keys, sorted.
00:08 <****> zbrown: Ah, so your grade really was "B\n" instead of "B", and "B\n" didn't exist in the hash.
00:09 <****> ya
00:10 <****> jagerman: thats going to be a problem then. what i really want to do is get mtimes for files, and process them beginning with the oldest file. i think i've been going over this the wrong way.
00:11 <****> i tried to put them in a hash and then sort, doesnt seem to work- and nor does mapping seperate arrays for files and mtimes during each readdir loop
00:11 <****> Mordecai1: That's fine; a sort call is just what you need.
00:11 <****> jagerman: I was just confused about the return value of chomp, I'm still getting used to functions that modify values in place
00:11 <****> Mordecai1: What are the hash keys?
00:12 <****> $hash{mtimes} = $filename
00:13 <****> or should i put it the other way round, with values for mtime for sort to work- and yes, since it needs to be in descending order, i'd have to reverse it.
00:16 <****> hmm...
00:16 <****> cpan -- install Data::FormValidator -- "Failed 57/59 test scripts. 237/269 subtests failed." -- this package has a 98% success rate. I'm using Debian, and I've mixed `CPAN install` with `apt-get install`...now I'm trying to use `dh-make-perl --install --cpan`, but I'm getting these "Failed 57/59 test script" errors. What are my options to reclaiming my beautiful Perl installation?
00:16 <****> awesomess3: hm?
00:16 * Daveman contemplates which templating system to use...
00:16 <****> Daveman: TT is good.
00:17 <****> yeah yeah...
00:17 <****> awesomess3: it depends on the failing tests... but 4.55 tests fine here.
00:18 <****> jagerman: $hash{mtimes} = $filename - in case u didnt see it. :)
00:20 <****> dooky!
00:20 <****> what's up dawg
00:20 <****> :D
00:20 <****> heh, nothing too exciting
00:20 <****> currently contemplating templating systems :p
00:20 <****> i've been halloween partying since last tuesday
00:20 <****> i feel like shit
00:21 <****> cpan sucks :o
00:21 <****> jawnsy: Sorry, I couldn't find a module that matched: sucks
00:21 <****> jagerman: thanks for the help
00:22 <****> Is there a function that just returns true or false as to whether a certain string exists within another string?
00:22 <****> sub strstr { my ( $needle, $haystack ) = @_; return $haystack =~ m/\Q$needle/; }
00:22 <****> ^-- that one
00:23 <****> zbrown: index
00:23 <****> kind of
00:23 <****> jagerman: $hash{mtimes} = $filename - in case u didnt see it. :)
00:23 <****> hmmm
00:23 <****> sorry..wrong windows
00:23 <****> Heh.. Why do I never remember index() :)
00:24 <****> hmmm ok
00:24 <****> cool
00:24 <****> wow... CPAN has avatars now?
00:25 <****> hahaha
00:25 * Daveman high-fives dooky
00:26 <****> heh
00:27 * CPAN upload: lsid-perl-1.1.6 by EKAWAS
00:27 <****> Daveman: it's fun
00:38 <****> hello all, how can i fix this error Can't locate DateTime.pm in @INC? Is it possible for me to install DateTime module?
00:38 <****> install DateTime
00:39 <****> imMute, how to do it? is it part of the module Date-Calc?
00:39 <****> perl -MCPAN -e 'install "DateTime";'
00:40 <****> ok thanks
00:41 <****> Patterner: My failed errors were because I thought `dh-make-perl` installed the dependencies as well -- but dh-make-perl doesn't install dependencies -- so after I downloaded/installed the dependencies, dh-make-perl worked quite well, and away the CPAN compile errors went :-)
00:42 * Patterner prefers g-cpan.pl :)
00:46 <****> well, somebody needs to make a d-cpan.pl
00:47 <****> dooky, if you're in or around the NY area, I'd invite you to some craaaazy parties we got going on :P
00:48 <****> alright, i'm on a debian etch box running apache, how do i enable apache to parse no-header perl files?
00:53 <****> perlbot, dooky's location
00:54 <****> http://en.wikipedia.org/wiki/Isla_Vista
00:54 <****> anyone work with perlqt?
00:55 <****> this looks interesting
00:55 <****> writing in it feel strange though. it's replacing some common things people are used to in perl oo
00:55 <****> hi
00:55 <****> no self obj reference in @_[0]
00:56 <****> and a bareword 'this' available anywhere in one's package
00:56 <****> Is there any particular name for an arbitrary data structure made out of HASH/ARRAY refs, where the data itself is all the non-referential scalars at the leaves?
00:56 <****> attributes defined in a use pragma line, instead of in the constructor
00:57 * CPAN upload: SQL-Biblosoph-1.0 by MATIU
00:57 * CPAN upload: Set-IntSpan-1.13 by SWMCD
00:57 <****> i've heard people call hashes, tables, before, but that's probably not what you asked :(
00:57 <****> sparc_: if you look at Moose it allows attribute declarations
00:57 <****> mst: that's cool
00:57 * sparc_ googles
00:57 <****> sparc_: not needing to declare $self won't happen until I get Moose::Declare going though
01:00 <****> "So instead of switching to Ruby, I wrote Moose :)"
01:00 <****> hehe
01:00 <****> this looks fun
01:01 <****> i havn't used anything like it yet though
01:01 <****> for mass writing of packages, i bet it makes things easier thouhg
01:01 <****> imMute, thank you very much..my problem is solved
01:04 <****> Gumbybrain: i can has template?
01:04 <****> http://svn.perl.org/books/beginning-perl.
01:04 <****> :o
01:04 <****> :O
01:04 <****> oh snap
01:04 <****> he totally told me! :P
01:04 <****> he's like, pfft lrn prl kthxbye noob
01:05 <****> Any ideas what is the rubout character?
01:07 <****> o.O
Total 33 pages. You are browsing page 1/33.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
