Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#perl

04 October 2007


Total 44 pages. You are browsing page 2/44.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

01:12 <****> s/people/perl coders/
01:12 <****> preaction_: just looking at doing tokenizing and stuff
01:12 <****> grigora: welcome to Class::DBI. hours of fun.
01:13 <****> preaction_: get like 3rd word in 2nd sentence for instance
01:13 <****> yfoo, Tokenising *what*? Markup?
01:13 * CPAN upload: HTML-Template-Filter-TT2-0.02 by SAPER
01:13 <****> sounds like a good choice for split, unless there's a module to do it for you
01:14 <****> preaction_: ok thx
01:17 <****> mst: so what should be loaded first? has_many() or has_a()? The docs say has_a() but I think you were suggesting the other way around. Basically my structure is Class1 and Class2 has_many(Class3) and Class3 has_a() for Class1 and Class2
01:18 <****> grigora: so you need to have Class3 loaded first
01:18 <****> grigora: I tink
01:18 <****> Does DBIC have these issues?
01:18 <****> no, of course it doesn't
01:19 * jagerman wonders if grigora is *really* prevented from switching, or just afraid to do so.
01:19 <****> Is there a way to make a function produce an lvalue?
01:19 <****> punter: Yes
01:20 <****> jagerman: What could that way be? I'm... jealous of subtr!
01:20 <****> substr
01:20 <****> jagerman: Any link would be much appreciated
01:20 <****> perldoc perlsub, Lvalue Subroutines
01:21 <****> thanks!
01:21 * punter thinks that object methods that change field values should be like $obj->param = "value"
01:22 <****> it's usually a bad idea
01:22 <****> Oh
01:22 <****> It's usually a bad idea even when you have a language with public fields that allow things like obj.field = "value";
01:23 <****> oh
01:24 <****> ok
01:25 <****> punter: You don't get any sort of data verification
01:25 <****> jagerman: Depends on the language.
01:26 <****> lvalue accessors make very nice low-level accessors
01:26 <****>set_param and that would do data validation. THough this is not the case with perl and perl's lvalue semantics would make this difficult.
01:27 <****> platypus: You *could* do that in Perl
01:27 <****> I don't think the effort (using tied variables) would be worth it, though.
01:27 <****> you could, if you were willing to put in even more overhead
01:27 <****> jagerman: Yes thats why I said "difficult" and not "impossable"
01:28 * platypus wishes that calling subs had a smaller overhead "Or that the optimizer could inline cheaply"
01:28 * jagerman wonders who platypus is quoting
01:29 * jagerman sighs
01:29 <****> My professor wants a hard copy of this assignment
01:29 * platypus is missusing the quote marks.
01:29 <****> 1514 lines in 3 files
01:30 * jagerman wonders if his printer has enough toner
01:32 <****> jagerman: Are you a grad student?
01:33 <****> kspath: No
01:33 <****> GumbyBRAIN: graduate student should be an oxymoron, shouldn't it?
01:33 <****> use strict; in your scripts would onlyhaev to be an oxymoron, shouldn't it?
01:33 <****> But the class has only three students, so I suppose the prof doesn't mind large assignments.
01:34 <****> GumbyBRAIN: Tell them the full terminology is post-graduate student!
01:34 <****> that's one of them can do the is/are dichotomy?
01:34 <****> GumbyBRAIN: What is dichotomy?
01:34 <****> false dichotomy.
01:34 <****> hehehe
01:35 <****> jagerman: ah, linguistic evolution creating nonsensical statements when parts chopped off. e.g. "I could care less"
01:36 <****> 'Class') load Class?
01:39 * dkr thought that was a lolcat caption at first
01:39 <****> GumbyBRAIN: mst does haz a id in ur class?
01:39 <****> Mst does haz a hlagh?
01:43 <****> OK, I am officially done with Class::DBI! Is there a good porting document for DBIx::Class?
01:43 * CPAN upload: Class-Simple-0.15 by SULLIVAN
01:43 <****> Actually, re above, C# supports things like obj.field = value; with validation.
01:44 <****> How do I run a perl script and specify an additional @INC search path?
01:44 <****> perldoc -q 'include path'
01:45 <****> grigora: I believe the documentation distributed with DBIx::Class has some porting information
01:47 <****> grigora: Or, at least, the docs mention some of the differences
01:47 <****> Thanks Somni
01:47 <****> jagerman: ok
01:48 <****> i forget, does qx update the $? variable?
01:49 <****> perldoc -f qx, follow the reference
01:52 * jagerman is terribly happy that his iceweasel segfaults on a print preview
02:03 <****> I'm at a bit of a loss as to what to call my modules I want to put up on CPAN, orgingally Directory.pm and Directory/File.pm, I've changed them to File::Directory and File::File but I'm just not sure
02:03 <****> I was considering File::Object and Directory::Object but then that means creating a new top level
02:07 <****> DoctorMO, Judging from your names, have you looked at Path::Class?
02:07 <****> (preexisting module)
02:08 <****> File::File sounds waay to redundant and not useful
02:08 <****> oops should be "way too" not "waay to" :P
02:08 <****> deja vu all over again
02:09 <****> vu daje the funny feeling that this has never happened before ?
02:12 <****> apeiron: maybe I'll just wrap those in some overload
02:13 * CPAN upload: Biblio-EndnoteStyle-0.05 by MIRK
02:13 <****> DoctorMO, Perhaps a better question would be "What does your code do that Path::Class doesn't?"
02:14 <****> apeiron: take string paths is apears
02:14 <****> my $dir = dir('foo', 'bar'); # How does yours differ from this?
02:15 <****> Anybody here have experience using dVCS systems? I'm looking at monotone right now.
02:15 <****>new( './foo/bar' );
02:15 <****> that is not actually an improvement
02:16 <****> Khisanth: no I can see that
02:16 <****> DoctorMO, Why would I want to hardcode a directory separator?
02:16 <****> reflexive, i hear that there's a dvcs that works with SVN, if that's your thing. otherwise i like how bazaar works
02:17 <****> preaction_, svk is the one you're thinking of. :)
02:17 <****> Yeah, that's svk.
02:17 * apeiron hasn't used svk too much but appreciates the largely similar interface between svk/svn.
02:18 <****> apeiron: I don't think it's worth arguing, I'll quietly go away
02:19 <****> apeiron: it's great if you need to fgrep -R :)
02:19 <****> Khisanth, svk you mean? Why not just use ack then? :)
02:19 <****> hello all I cant seem to find a clean way to compare two data structs (hashes or arrays)? so far the only thing that I can think of is to use Test::More for is_deeply but that requires a plan or to use something like YAML to convert to a text block and then check for equality. But there has to be a better way?
02:19 <****> I found ack a bit unpredictable
02:20 <****> apeiron: how can you use the "dir" function? Is it a function of which module?
02:20 <****> punter, Path::Class
02:20 <****> thx
02:21 <****> apeiron: I like fgrep mostly because it IS fairly dumb


Total 44 pages. You are browsing page 2/44.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo