Re: Writing a Binary File

2004-12-23 Thread $Bill Luebkert
Leroy G. Blimegger Jr. wrote: > Hello All, > > Happy Holidays! > > Thanks for the Date information. I got all of that working. I have one last > problem. All of this info I have been working on is coming from a binary > file. Basically, I have to read the binary file, get the date info, do some

Re: Adding/Subtracting Dates

2004-12-23 Thread $Bill Luebkert
Ted Schuerzinger wrote: > $Bill Luebkert graced perl with these words of wisdom: > > >>Jones Robert Civ TTMS Keesler wrote: >> >> >>> A better option would be to use the Date::Calc module. >> >>That's your opinion - I seldom if ever need to use any of the Date >>modules. If you had said 'ano

Writing a Binary File

2004-12-23 Thread Leroy G. Blimegger Jr.
Hello All, Happy Holidays! Thanks for the Date information. I got all of that working. I have one last problem. All of this info I have been working on is coming from a binary file. Basically, I have to read the binary file, get the date info, do some checking, then write a new binary file with

Re: Adding/Subtracting Dates

2004-12-23 Thread Ted Schuerzinger
$Bill Luebkert graced perl with these words of wisdom: > Jones Robert Civ TTMS Keesler wrote: > >> A better option would be to use the Date::Calc module. > > That's your opinion - I seldom if ever need to use any of the Date > modules. If you had said 'another option', I wouldn't have bothe

RE: need help writing to an HTML file

2004-12-23 Thread Charles K. Clarkson
Jr. <> wrote: : To me it looks like I am really stupid and I feel really dumb : right now. I could be going about this in the wrong way : period. I am not sure. If some one could please help me I : would be very much appreciative. If you feel dumb or stupid stop programming computers. I

need help writing to an HTML file

2004-12-23 Thread Jr.
I am a beginner & I am trying to embed a cgi-script into a web page but cannot seem to do it correctly.  The reason why is I am writing another script that that will replace the bottom portion of the web-page that says I made the page.  And I want to be able to just link to that script.  He

Kim Greene/IS/Group/Paramount_Pictures is out of the office.

2004-12-23 Thread Kim_Greene
I will be out of the office starting 12/23/2004 and will not return until 12/27/2004. ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Adding/Subtracting Dates

2004-12-23 Thread $Bill Luebkert
Jones Robert Civ TTMS Keesler wrote: > A better option would be to use the Date::Calc module. That's your opinion - I seldom if ever need to use any of the Date modules. If you had said 'another option', I wouldn't have bothered to respond. :) > ($tyear, $tmonth, $tday, $thour, $tmin, $tse

RE: Adding/Subtracting Dates

2004-12-23 Thread Jones Robert Civ TTMS Keesler
A better option would be to use the Date::Calc module. ($tyear, $tmonth, $tday, $thour, $tmin, $tsec) = Today_and_Now(); ($nyear, $nmonth, $nday) = Add_Delta_Days($tyear, $tmonth, $tday, -5); If ((check_date($tyear,$tmonth,$tday) and (check_date($nyear,$nmonth,$nday)) { $daysdiff = Delta

RE: count of matches

2004-12-23 Thread Andy_Bach
Try: #!/usr/bin/perl -w use strict; $_ = "ABabcde12345BAABabcde1234blahblah5BA"; print "is: ", $_ , "\n"; my $count = () = $_=~ /(AB.*?BA)/g; my @match = /(AB.*?BA)/g; print "match: ", join(", ", @match), "\n"; print "I matched $count times\n"; The trick is: $_ =~ /../

Re: Adding/Subtracting Dates

2004-12-23 Thread $Bill Luebkert
Leroy G. Blimegger Jr. wrote: > Hi All, > > I have a question about adding and subtracting dates: > > I am retrieving some date and duration values from an array: > > $td=$tlf[54]; #Total days > $st_mon=$tlf[57]; #Start Month > $st_day=$tlf[59]; #Start Day > $st_yr=$tlf[61]; #Start Year > $cu_m

Adding/Subtracting Dates

2004-12-23 Thread Leroy G. Blimegger Jr.
Hi All, I have a question about adding and subtracting dates: I am retrieving some date and duration values from an array: $td=$tlf[54]; #Total days $st_mon=$tlf[57]; #Start Month $st_day=$tlf[59]; #Start Day $st_yr=$tlf[61]; #Start Year $cu_mon=$tlf[58]; #Current Month $cu_day=$tlf[60]; #Curren

Problem with Net::Perl::SSH (and SFTP)

2004-12-23 Thread aleblan1
Hi everyone, I'm trying to use SFTP on windows XP to send files to a SUN solaris machine. When I create the SFTP object I specify to use protocol 2. However I get this warning message: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl.pm l

RE: count of matches

2004-12-23 Thread Beckett Richard-qswi266
> You can also use this bizarre construction to capture just the count: > > $_ = "ABabcde12345BAABabcde1234blahblah5BA"; > $count = () = $_=~ /(AB.*?BA)/g; > print "I matched $count times\n"' > > the () between the two ='s forces the match to list context, and then > THAT is forced t