| |
| |
| |
|
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
Comments:
<0> The Church used to get real pissed about cartoons while it was trying to stop the progress of science in 1600s england <1> lol <2> mh.. a friend asked me to write a small database thingy for his website. it's the kind of job i would do with pgsql/mysql. but i've got to do this one without sql. i'm really too lazy to write my own kind of flat file db. is there a reason why i shouldnt write this one with XML::Simple? or is there maybe a module that fits better? <0> Mockery would be blasphemy, heresy, treason against the Church. <3> jsn: Ok, I have the verdict :)
<4> noganex: SQLite <0> flat file DBs == DBM, right? <0> SDBM, GDBM, NDBM, etc <3> jsn: I don't think DBM is flat file. Well... I'm not 100% sure, but IIRC the last time I did a "cat" on one it wasn't very pretty <5> it could be flat, doesn't mean it has to be plain text <0> XML::Simple will probably work, and might even be more convenient for certain things. <0> Hmm, why not Storable? <3> jsn: Perl (/usr/bin/perl) links with a file called libperl.so. mod_perl's DSO object is ALSO called libperl.so, although is NOT the same as the libperl.so that /usr/bin/perl links with. For clarity most vendors rename mod_perl's libperl.so to mod_perl.so, but the default name if you build mod_perl from source is libperl.so and the default location is PREFIX/libexec/libperl.so. So your apache configuration uses a DSO mod_perl, not a static <6> I am getting an error, while($line = <FILE>) --> Global symbol "$line" requires explicit package name at ./mail_from.pl line 16. <6> why is this? <6> I am following http://cslibrary.stanford.edu/108/EssentialPerl.html <7> http://pastebin.com/728779 it's correct in perl? <8> The paste 728779 has been moved to http://erxz.com/pb/1302 <0> rutski89, sounds fine to me, it does work, after all :) <3> jsn: yup :) <0> war92: try while (my $line = <FILE>) { } <0> Every variable needs something like a "my" an "our" or a "local" <3> jsn: but if mason ever leeks 40MB of memory or randomly crashes, you know why. <0> I don't use Mason, I use Petal <3> I know, I'm just saying
<6> jsn , ahh, thanks <3> jsn: what made you leave Mason? <3> jsn: how long ago was it? how long as Mason been around anyway? <9> Wide character in syswrite at /usr/local/lib/perl5/site_perl/5.8.8/Net/OSCAR/Connection.pm line 137. <5> war92: that tutorial looks a bit outdated <9> that module crashes me :( <9> when i try using it to google search <9> (specific words) <0> I am not happy with _near_ XML templating systems. Mason violates xml rules, even though it resembles XML <0> Petal templates are xmllint clean <6> Khisanth: I am reading many of them, want to parse out some stuff out of a file and sick of using bash tr awk grep cut to do it <0> That means, for instance, I can write scripts to go through them all that can change bits and pieces using XMLian logic <1> plus you can't make strange comments when including it, like: use XML::Petal; #put the petal to the metal! <0> For valid reasons, though, Petal is not particularly popular. <1> I just guessed with the include name <0> It isn't Perl'y enough; <0> Actually, it is use Petal; use Petal::Utils; #but anyway <0> The perfect templating system would be Petal like, but more perly <9> $message =~ s/[^\na-z0-9\-_<>="'\. ]//g <9> what did i forget to escape there? <9> giving me a parse error on the next line
Return to
#perl or Go to some related
logs:
grub rsbac-sources #perl #perl #linux #physics #linux #perl #perl EX_CANTCREAT quota sendmail #suse
|
|