Re: Compare large files memory error

2001-08-08 Thread Will Crain
Perhaps the DOS FC (file compare) command will suffice for your application: Compares two files or sets of files and displays the differences between them FC [/A] [/C] [/L] [/LBn] [/N] [/T] [/U] [/W] [/] [drive1:] [path1]filename1 [drive2:][path2]filename2 FC /B [drive1:][path1]filename1 [

RE: reading a text file

2001-07-26 Thread Will Crain
chop $states{$code}; >chop $states{$code}; >print "$code $states{$code}\n"; >} > >Best Regards, > >Katherine Qiang >http://home.cwru.edu/~qxq2 >http://kittyqiang.tripod.com > > > >>From: "Will Crain" <[EMAIL PROTECTED]> &g

Re: output file for download

2001-07-25 Thread Will Crain
Tim, I believe I know what you are asking. Normally, CGI returns data in the form of text/html. This is indicated by including the line Content-type: text/html\n\n in the output of your CGI application. This instructs the receiving agent to treat all data that follows as html text. I believ

RE: reading a text file

2001-07-25 Thread Will Crain
Debbie, your problem seemed easy enough. See if this works for you: my $state; my $code; my $currCode = 0; my $outLine = ""; open(STATES, ") { $line =~ /^(\w+): (\d+)/; if($code == $currCode) { $outLine .= ", " . $1; } else { unle

RE: Concatenation

2001-07-24 Thread Will Crain
Use the string concatenation operator . $string = $year."-".$month; HTH Will -- Original Message -- >Hi friends, > Is there a way to concatenate 2 arguments in one string using >Perl like for eg $year and $month where >$year=01 >$month=06 >and I want the result as a string 06-01 using Pe

RE: Unix syntax

2001-07-24 Thread Will Crain
Without seeing the complete script, I can only venture to guess. You stated you were porting a script from WinNT to a Unix environment. Be sure you have properly included a "shebang" line at the beginning of your script like this: #!/usr/bin/perl -w where /usr/bin/perl is the path to your ins

RE: A Split Question

2001-07-03 Thread Will Crain
-- Original Message -- >My file has dates in it that either come out as "2Jul2001" or "21Jul2001". > So one or two digits for the day, three for the month, and four for the >year. > >So I would like to split out the day, month, year, and am interested in >splitting techniques, where there are n