#perl
24 October 2007
Total 38 pages. You are browsing page 1/38.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Wed Oct 24 00:00:00 2007
--- Day changed Wed Oct 24 2007
00:00 <****> that calls a perl script to do the work and supply the data.
00:00 <****> heh
00:00 <****> Hi all. What might be wrong if cpan on a newly installed machine can't successfully download 01mailrc.txt.gz from any of the URLs set up in o conf?
00:00 <****> mst: found that out by coming into #perl, typing my code, and pressing enter.
00:00 <****> I can ftp to the sites and manually get the file, but even though I put it in .cpan/sources/authors cpan is still trying to fetch it.
00:00 <****> peshalto: try 'export FTP_PASSIVE=1'
00:01 <****> mst: cool, will try that. that rings true, since the machine does have a firewall enabled.
00:02 <****> Hello all. I am sure this is an easy one. I'm trying to avoid using Date::Manip and friends... basically, I have a starttime and an endtime as timestamps. ideally, i would like to take the starttime, add a day to it, and convert that number to something human readable, until that time is one days worth less than the endtime, and stop. I've tried a for loop, taking $starttime, adding ($starttime + (24*60*60)) but that seems
00:02 <****> not to work. Any clever ideas?
00:02 <****> mst: yes, much nicer.
00:02 <****> how can i write a regex that only allows alpha numeric chars (letters and numbers and periods and single quotes) but not everything else? has to be posix style regex
00:03 <****> have pseudo hashes been completely removed from 5.10?
00:03 <****> yes!
00:03 <****> ra12q: use a module. Added 86400 seconds doesn't work
00:03 <****> codenin: perldoc perlretut ; perldoc perlre
00:04 <****> Woosta: But in theory it ought to though, right?
00:04 <****> posix? man regex
00:04 <****> codenin: so you aren't really using Perl :)
00:04 <****> can you give me a freebie please kinda need it right now
00:04 <****> ra12q: apart from hickups at DST changes that should work
00:04 <****> ra12q: No. There are at least 2 days in most TZs with less or more than 86400 seconds
00:04 <****> [[:alnum:].']
00:04 <****> +
00:05 <****> Right. Thanks. Date::Manip it is then. :)
00:05 <****> No
00:05 <****> Use DateTime
00:05 <****> See the Date::Manip docs
00:05 <****> Why?
00:06 <****> DateTime RULEZ, that's why.
00:06 <****> It's a lot more robust
00:06 <****> Fair enough.
00:06 <****> Doesn't Graham Barr say that DateTime is the only module to get DateTime right, something like that, someone like that?
00:06 * Khisanth uses Date::Calc
00:06 <****> initself2: so what if he did say that?
00:06 <****> do any of you have the same problem where you hate being at your job so you eat the whole time you are there?
00:07 * PerlJam bets it's Dave Rolsky who claims DateTime is the only module to get it right ;)
00:07 <****> the only thing I really need is Add_Delta_Days anyway :)
00:07 <****> no...that sounds like a personal problem to me
00:07 <****> PerlJam: I don't know so what, seems like appeals to authority are ok to make?
00:07 <****> initself2: you can make them, but they carry very little weight unless you've got a really good authority.
00:08 <****> or a couple hundred pounds
00:08 <****> initself2: definitely not
00:08 <****> Graham Barr is pretty good
00:08 <****> PerlJam: my authority is spurious at best.
00:08 <****> Other than Date::Manip being... rather large, what arguments against it is there?
00:08 <****> I'd like PHP if it had some kind of packaging mechanism
00:08 <****> anno-: pretty good at what?
00:08 <****> so I could write modules
00:08 <****> hmmm... that it isn't Date::Calc?
00:08 <****> :)
00:08 <****> that other people could use without interfering with their namespace
00:08 <****> ra12q: they all get things wrong .. except DateTime
00:08 <****> Teratogen: namespaces will probably make it into php 5.3 That's one step closer :)
00:09 <****> great
00:09 <****> then I will start writing PHP
00:09 <****> PHP is still topheavy with builtin functions imho
00:09 <****> at beinng an authority to quote
00:09 <****> thanks Khisanth
00:09 <****> 1 ) }
00:11 <****> anyone ever seen Schwern's sex program?
00:12 <****> http://svn.schwern.org/svn/CPAN/Sex/trunk/Sex.pm
00:12 <****> anno-: an authority on what?
00:14 <****> GUmbybrain moar daves plz
00:14 <****> Plz to check quite a bit of a friend (ok, so this was my private chat logs.
00:14 <****> :D
00:14 <****> :D
00:15 <****> Any Win32 fanboyz here can suck on this "java.net.unknownhostexception c"
00:15 * initself2 sucks on that.
00:15 <****> I'm a hardcore Win32 fanboy.
00:16 <****> shouldn't that be UnknownHostException?
00:16 <****> GumbyBRAIN: I eat pieces of scum like you for breakfast.
00:16 <****> Eat of my script, not getting the following change to be you.
00:20 * Chris62vw dongs GumbyBRAIN GumbyGumby dongs
00:20 <****> gumbybrain is gumbygumby.
00:20 <****> gumbybrain is gumbygumby.
00:20 <****> Gumbygumby gumbybrain gumbygumby dongs dongs dongs gumbybrain last thongs for mary gumbygumby.
00:20 <****> GumbyBRAIN: last i had to tell gumbygumby to be for, but you still need java installed afaik.
00:24 <****> oh wow... what are the variables that contain the chars before and after a successful match?
00:24 <****> perldoc perlvar will tell you
00:24 <****> $1, $2, $3
00:24 <****> (I don't remember :)
00:24 <****> ?
00:24 <****> initself2: he said before and after.
00:25 <****> $1 is the match itself...
00:25 <****> Necos: I'm not sure there are any but there are vars that give you the indexes in the string of the start andend of matches
00:25 <****> Necos: that plus substring is your friend
00:25 <****> Necos: $` $& $'
00:25 * Khisanth kicks PerlJam
00:25 <****> haha cool
00:26 <****> @- and @+
00:26 <****> %!
00:26 <****> Necos: you -still- need to look these up in perldoc perlvar though.
00:26 <****> Necos: there are performance implications.
00:26 <****> $1, $2, $3, etc, are the 1st, 2nd, 3rd, etc matched pieces (e.g., in () ) of text from a match
00:26 <****> not for @- and @+ but you need to look up which is the start and which is the end :P
00:27 <****> i have a bunch of csv style strings, and i'm trying to extract everything before the second comma ( including whitespace )... just at a loss of how to do it
00:27 <****> Necos: Text::CSV ?
00:27 <****> there are at least 3 CSV modules
Total 38 pages. You are browsing page 1/38.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
