Skip to search.
perl-beginner · Perl Beginners Mailing List

Group Information

  • Members: 2100
  • Category: Perl
  • Founded: Aug 2, 1998
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
Messages 735 - 764 of 27344   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
735 Tom Barron
tbarron@... Send Email
Sep 1, 2000
1:34 pm
... What do you mean by "flag on it"? I'm not sure how you'd go about tracking how much memory is in use. Tom...
736 bob jacobson
bjacobson@... Send Email
Sep 1, 2000
8:31 pm
Can anyone tell me of a way to determine the time value or # of seconds of anydate? For example, how can I find the seconds for July 26, 2000 at 11:04 am....
737 Tom Barron
tbarron@... Send Email
Sep 1, 2000
9:57 pm
... use POSIX; $sec = POSIX::mktime(0,4,11,26,6,100); # July 26, 2000 11:04 a.m. print "sec = $sec\n"; print join(" ", localtime($sec)), "\n"; Note that July...
738 bob jacobson
bjacobson@... Send Email
Sep 1, 2000
10:05 pm
Thank you very much, this is exactly what I needed! ... From: Tom Barron [mailto:tbarron@...] Sent: Friday, September 01, 2000 4:58 PM To:...
739 joach@... Send Email Sep 3, 2000
10:10 pm
I have been working with file which have the date as 20000903 and I wish then to read 03092000 I would think that this would have to be split and YYYY=4...
740 Tom Barron
tbarron@... Send Email
Sep 3, 2000
10:20 pm
Here's one way... ... @data = split(/,/, $_); ($year,$month,$day) = ($data[0] =~ /(....)[ /-]?(..)[ /-]?(..)/); $dmy = $day . $month . $year; ... Tom...
741 Maisha Walker
maisha@... Send Email
Sep 3, 2000
10:46 pm
Hi Tom, Could you explain how this: =~ /(....)[ /-]?(..)[ /-]?(..)/); actively splits this data: 200000830 into three pieces that can be picked up by...
742 joach@... Send Email Sep 3, 2000
11:39 pm
OK.... ran it through the debugger and it says there are errors in line #14 not just one but several..... What I am trying to do is reverse the date order in...
743 Tom Barron
tbarron@... Send Email
Sep 3, 2000
11:39 pm
... The secret ingredient is the parentheses. Ordinarily, the return value of =~ is 1 or 0, indicating whether the match was successful or not. F'rinstance, ...
744 Tom Barron
tbarron@... Send Email
Sep 3, 2000
11:41 pm
... You're missing a closing brace. I've marked it below. ... You need a "}" here....
745 Andrew Johnson
andrew-johnson@... Send Email
Sep 4, 2000
12:48 am
! OK.... ran it through the debugger and it says there are errors in line #14 ! not just one but several..... You are missing the closing brace on your while...
746 joach@... Send Email Sep 4, 2000
2:01 am
... YES........!!! This copy of the script come through without errors........ and does the job very nicely. This sort of format does not appear in the texts...
747 Greg Webster
greg@... Send Email
Sep 4, 2000
2:25 am
Personally... To convert 20000803 (and be able to do cool things with the values individually), I'd do something like the following: $wholedate = '20000803'; ...
748 Andrew Johnson
andrew-johnson@... Send Email
Sep 4, 2000
2:35 am
! the time to document what is happening in line ! ! $data[0] =~ s<^(\d{4})[ /-]?(\d\d)[ /-]?(\d\d)$><$3$2$1>; Firstly, you do not have to use / as the...
749 joach@... Send Email Sep 4, 2000
2:48 am
Thank you for the detailed explanation ...... and the reading material.... There is more to the perl than one thinks....I like the way i covers the space,...
750 Luke Metcalfe
luke@... Send Email
Sep 4, 2000
5:17 am
I'm pulling my hair out over this one: use LWP::UserAgent; use HTTP::Request; use HTTP::Response; my $ua = new LWP::UserAgent; $ua->use_alarm(0) ; # I've...
751 joach@... Send Email Sep 4, 2000
7:33 am
Well I am getting better but still not there yet. What I am trying to do is reverse the Data..... and add a Header......Reverses just fine..... and adds the...
752 Maisha Walker
maisha@... Send Email
Sep 4, 2000
1:41 pm
Andrew - that was a beautiful and suprisingly simple explanation of what was going on in that regex. Thank you!! maisha ... From: Andrew Johnson...
753 Maisha Walker
maisha@... Send Email
Sep 4, 2000
1:59 pm
just curious everyone, but why use \d\d instead of \d{2} - even just for consistency sake? is there a particular reason for using \d\d instead? maisha ...
754 Maisha Walker
maisha@... Send Email
Sep 4, 2000
2:02 pm
hey, isn't the problem with this though, that you cannot as simply account for the addition of spaces, dashes or slashes to the date? that was one of the...
755 Oliver Manickum
oliver@... Send Email
Sep 4, 2000
2:17 pm
Hey Maisha, I would try to compensate for both.. ie. if a user sometimes used 2000-05-03 or sometimes used 20000503 then i would first do this $date =...
756 Maisha Walker
maisha@... Send Email
Sep 4, 2000
2:20 pm
oh yeah - that *is* simple! Thank you! maisha ... From: Oliver Manickum <oliver@...> To: perl-beginner@egroups.com <perl-beginner@egroups.com> Date:...
757 koetzler@... Send Email Sep 4, 2000
2:44 pm
I was using the Net::POP3 module for checking my emails but after including the "Timeout -> 15" in $pop = Net::POP3->new($mailserver, Timeout->15) or $errcode...
758 joach@... Send Email Sep 4, 2000
3:29 pm
Carlo this does work ..... I just ran it and it's fine. Maybe a bad cut and paste the first time... Now I understand the /n that's a new line ...........
759 Andrew Johnson
andrew-johnson@... Send Email
Sep 4, 2000
5:14 pm
! just curious everyone, but why use \d\d instead of \d{2} - even just ! for consistency sake? is there a particular reason for using \d\d ! instead? To be...
760 Greg Webster
greg@... Send Email
Sep 4, 2000
7:11 pm
Sorry, you're right...but this is easily accomplished with one line. $wholedate = '20000803'; $wholedate =~ s/[\/-\\\.//g; #removes / - \ and . Add as...
761 Andrew Johnson
andrew-johnson@... Send Email
Sep 4, 2000
7:57 pm
! Sorry, you're right...but this is easily accomplished with one line. ! ! $wholedate = '20000803'; ! $wholedate =~ s/[\/-\\\.//g; #removes / - \ and . Add...
762 Greg Webster
greg@... Send Email
Sep 4, 2000
8:50 pm
Heh, I really should test what I write. Forgive me, it's been a hell of a week. You are absolutely right about the placement and order. Greg ... -- < >-< ><...
763 Maisha Walker
maisha@... Send Email
Sep 4, 2000
10:38 pm
ha ha ha - that's great! maisha ... From: Andrew Johnson <andrew-johnson@...> ! just curious everyone, but why use \d\d instead of \d{2} - even just ! for...
764 joach@... Send Email Sep 5, 2000
12:22 am
I have one more request.... then I have to settle down to catch up on my reading in Perl. I have a file that reads as 20000903,1.25,2.25.1.75,2.25,21540 all of...
Messages 735 - 764 of 27344   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help