#perl - Wed 14 Mar 2007 between 01:52 and 07:26



lualucrunge: I need it to extract information from log files used by a PSTN terminal and then probably parse it to csv.
crungelualu: Learning Perl, Intermediate Perl, Programming Perl, Perl Best Practices
lualuI know about the mods- but for example, i am wondering how to do things like stepping through the file (obviously a while (<>) loop) but also more- like, when I see a certain pattern, i want to read the next two or three lines, extract matches from the subset and then use that to parse into csv
crungelualu: you may also want to look at the Regex::Common module and related modules
dharlualu: sounds like you will need to master regex next
tombowprogramming perl is a leave-it-next-to-the-toilet-in-case-of-constipation book
crungelualu: you familiar with finite state machines?
f00li5htombow: oh, rly?
tombowya rly
dhari reserve that spot for Motor Trend and Automobile magazines.. thats my brief escape from code during work hours
Jmax-lualu: in that instance, one could load the contents of the file into an array, and then shift/unshift the array as necessary
lualu: if the file is not too large, that is
if it is, you'll need to use an iterating mechanism of some sort. there is probably such a module on CPAN
lualucrunge: not really- but i remember coming across the term- don't know where though- probably on cpan...at this point i just need some sort of roadmap :P but anyway, so i'll follow on that crunge- as well as the regexp::common module.
Jmax-or IO::File perhaps
crungelualu: Programming Perl is more of a reference than a "tutorial" type book
Jmax-lualu: if you've read through learning perl and intermediate perl in full, i would recommend HOP and PBP
perlbot hop
perlbotHigher Order Perl, http://hop.perl.plover.com/
lualuany suggestions as to where i can find scripts that i can learn from?
crungeI wouldn't recommend HOP if you still feel you're a beginner
f00li5hlualu: ebay!
lualuJmax-: i've gone through learning perl- intermediate perl, not so much. that is the thing, fellas. getting a bit frustrated here. But then again, good things do take time, eh?
dharlualu: frequent perlmonks.org
crungelualu: the only way to really learn is to do different things
f00li5hdhar: oh, that's a good idea
Jmax-lualu: crunge is right; try using your newly acquired knowledge of perl in an actual application
learn through doing :)
tombowhigher order perl is weak
lou_calIs the Win32::API documentation the complete listing of what you can do with it? I even took a look at the module and didn't see anything that seemed like it would interact with ram. I found this PDF quick reference with a lot more uses of Win32::API but still nothing about memory or ram. Anyone have any ideas, or can anyone tell me how to learn to learn better with the right place to look (have been googling)
f00li5hlualu: yeah, just write something that you'd find useful, like an online cooking site
crungelualu: the tough part is finding a project that's challenging but within reach for your skill lvel
eMishor javaPerl
rindolfchickybabe20: well, there was someone there who said "chickybabe" a lot.
TeddyBBut thats only one of the problams.. the other problam is the size of the file (not script)
extintorgtk2-perl ?
actionsomian SO looks down on people who try to use a "hawt" nick to manipulate others into helping them.
somianSO looks down on people who try to use a "hawt" nick to manipulate others into helping them.
extintorsomian: the question is rather, what is a chickybabe ? A female chicken is how interpret it...
somian^what?
ayrnieuTeddyB - if your program does anything interesting, 5MB is nothing. Anyway, we can't help you without explanation on your part as to -why- you have a 5MB file.

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 92 

IrcArchive