[28139] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 9503 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jul 20 18:05:43 2006

Date: Thu, 20 Jul 2006 15:05:08 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Thu, 20 Jul 2006     Volume: 10 Number: 9503

Today's topics:
        CGI-Timeout causing "internal server error"???? <laff7430@bellsouth.net>
    Re: CGI.pm and lost carriage returns <no_spam@null.com>
    Re: CGI.pm and lost carriage returns xhoster@gmail.com
    Re: CGI.pm and lost carriage returns <jczapski@nnnot.com>
    Re: CGI.pm and lost carriage returns <jczapski@nnnot.com>
    Re: CGI.pm and lost carriage returns <noreply@gunnar.cc>
    Re: CGI.pm and lost carriage returns <justin.0607@purestblue.com>
    Re: CGI.pm and lost carriage returns <David.Squire@no.spam.from.here.au>
    Re: Clock usenet@DavidFilmer.com
    Re: Getting started in PXPerl, i.e how to run a script? <youcontrol@hispeed.ch>
        hex file lily12a@gmail.com
    Re: hex file <David.Squire@no.spam.from.here.au>
    Re: hex file usenet@DavidFilmer.com
    Re: Need compress-zlib example for textfile into .gz <tadmc@augustmail.com>
    Re: Need compress-zlib example for textfile into .gz <marc.bau@gmx.net>
    Re: Need compress-zlib example for textfile into .gz <mritty@gmail.com>
    Re: Need compress-zlib example for textfile into .gz <marc.bau@gmx.net>
    Re: Need compress-zlib example for textfile into .gz <marc.bau@gmx.net>
    Re: Need compress-zlib example for textfile into .gz <marc.bau@gmx.net>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Thu, 20 Jul 2006 16:58:03 -0400
From: Carl Lafferty <laff7430@bellsouth.net>
Subject: CGI-Timeout causing "internal server error"????
Message-Id: <N6Svg.20995$cu1.16049@bignews3.bellsouth.net>

I have posted before and received a LOT of help on a project for my 
public library.  Right now I am having an issue using that information.

I was able to get my net::telnet application to work.  it returns the 
information that I want and I am in the process of converting it to a 
usable script but I have run into a problem.

When the code executes I have the CGI display a form asking for a title 
to search for and give them a submit button.  say you enter "Tom Swift".
my script is then called again with that parameter, spends a few seconds 
talking to the telnet server I have to talk to and then returns my data. 
  This works PERFECTLY (well some warnings but I will work those out 
later) from the commandline.  (I simulate the 'get something from the 
script' code to run from cmd line)  When I run it from the browser, it 
simply gives me "internal server error" and my 
/var/log/apache2/error.log says Premature end of script headers.

The code generated from the command line looks like this:
_________________
Content-type: text/html

<html><body bgcolor=blue text=white>Results:<br> <br>
  Tom Swift and his aquatom   Appleton, Victor     J APPLETON 
|ocm03632157|1 <br>
  Tom Swift and his atomic    Appleton, Victor     J APPLETON 
|ocm02915922|1 <br>
  Tom Swift and his deep-se   Appleton, Victor     J APPLETON   | 
58014649|1 <br>
  Tom Swift and his electro   Appleton, Victor     J APPLETON 
|ocm01088658|1 <br>
  Tom Swift and his flying    Appleton, Victor     J APPLETON   | 
54000408|1 <br>
  Tom Swift and his repelat   Appleton, Victor     J APPLETON 
|CNV02382170|1 <br>
  Tom Swift and his space s   Appleton, Victor     J APPLETON 
|ocm01088653|1 <br>
  Tom Swift and his ultraso   Appleton, Victor     J APPLETON   | 
57004843|1 <br>
  Tom Swift in the caves of   Appleton, Victor     J APPLETON 
|ocm02635857|1 <br>
  Tom Swift on the phantom    Appleton, Victor     J APPLETON 
|ocm04678341|1 <br>
</body></html>

_____________________________
My question is that since it takes a 2-4 seconds to retrieve the data 
(there is a delay as the telnet server accpets the login that is beyond 
my control at all), could this be causing the browser to timeout????

Below is my code for my first real try into this as a cgi script.

Any help is appreciated.  (



______________________________
#!/usr/bin/perl

use Net::Telnet;
#use warnings;
use CGI;


sub connect
{
#
# setup the connection to the server.
#
$galaxy = new Net::Telnet (Host => "10.10.20.220",
                            Port => 2001,
		           Timeout => 10,
		           Dump_Log => 'dump.log',
		           output_record_separator => "\x0d",
		           Input_log => 'input.log',
		           Option_log => 'option.log',
		           Output_log => 'output.log',
		           Prompt => '//',
		           Telnetmode => '0');


eval {
    $ok = $galaxy->waitfor('/option:/');
    $ok = $galaxy->print(">>>G");
    $ok = $galaxy->waitfor('/option:/');
    $ok = $galaxy->print("\x1c\xc0\xc1\xc0\xa7\xa8");
    $ok = $galaxy->waitfor('/\x1e\x59/');
    $ok = $galaxy->print("0001 AUTO||O|1.11 (800)");
    $ok = $galaxy->waitfor('/YN|3/');
    $ok = $galaxy->print("5000 5166 30");
    $ok = $galaxy->waitfor('/0001 00000 /');
    $ok = $galaxy->print("0020 ");
    $ok = $galaxy->waitfor('/ile/');
    $ok = $galaxy->print("0021 ");
    $ok = $galaxy->waitfor('/NNNNNNNNNNN/');
    $ok = $galaxy->print("0022 ");
    $ok = $galaxy->waitfor('/NNNNNNNNNN/');
    $ok = $galaxy->print("5000 5170 00 00 L ");
    $ok = $galaxy->waitfor('/0004 000\x8f/');
    $ok = $galaxy->print("5000 5163 00 00 01 ");
    $ok = $galaxy->waitfor('/0001 00000/');
    };
    if ( $@ ) {print qq!  <h1 align=center>Temporary Error</h1> <h3 
align=center>A timeout with the server has occured, this page will be 
refreshed in a few seconds</h3> !;}

}

sub logout
{
	$galaxy->print("999");
	$galaxy->print("0005 GALAXY||20");
	$galaxy->print("0010");
	$galaxy->close;
#	print "</html>";

} #logout








sub displaymenu
{
print qq!
<form action="http://splinter.fclib.org/cgi-bin/newbooks.cgi" method="GET">
Enter title you wish to search for <input type="text" name="lookfor" 
width="30"><br>
<input type="submit" value="Click to search">
</form>

!
}


sub displayheader
{

print qq!
Content-type: text/html


<html>
<head><title>Booklookup First Trial</title></head>
<body bgcolor="blue" text="white">
<h1 align="center">Book lookup trial</h1>
!
}



sub getsearchresults
{
&connect();
#put checks here to take into account different search types later.

$galaxy->print("5000 5002 30 0 $lookfor");
#get the first thing sent back which will look like " xxx xxxx xxx" 
hence the
#funny looking split below to take care of the leading space.. all I am
#interested in is the $howmany variable
($temp) = $galaxy->waitfor("/\x8f/");
($junk, $howmany, $junk, $junk) = split (/ /,$temp);

#Initailly I am only going to worry about the first 10 hits since
#most of the hits you look for will be in the fist 10 but I am going to 
include the
#loop that I need to do more than that incase I get ... loopy.
#gonna use parallel arrays initally here..  may use hashes later on
#
$main = 1;
@titles = ();
@cards = ();
@available = ();
while ($main < 2) {
     $count = 1;
     while ($count <= $howmany-1) {
         ($info) = $galaxy->waitfor("/\x8f/");
	($controlnum) = $galaxy->waitfor("/\x8f/");
	($hilite) = $galaxy->waitfor("/\x8f/");
	$titles[$count] = $info . "|" . $controlnum . "|" . $hilite;
	$count = $count + 1;
	} #while $count
     #clear out buffer
     $galaxy->waitfor("/\x8f/");
     $galaxy->waitfor("/\x8f/");
     $main = $main + 1;
     }



} #getsearchresults



sub displaysearchresults
{
print "Content-type: text/html\n\n";
print qq!<html><body bgcolor=blue text=white>!;

print qq!Results:<br>!;

$line = "";
foreach $line (@titles) { print "$line <br>\n"; }


} #displaysearchresults


##################main


$formdata = new CGI();
#print "Content-type: text/html\n\n";

#since I am only doing TITLE right now I am not going to
#worry about the search type for NOW
#
$lookfor = $formdata->param("lookfor");

$lookfor = "Tom Swift";
#$lookfor = <STDIN>;

if ($lookfor eq "") {
     print "Content-type: text/html\n\n";
     &displaymenu();
} else {
        &getsearchresults();
        &displaysearchresults();
        print qq!</body></html>!;
        &logout;
        };





------------------------------

Date: Thu, 20 Jul 2006 13:11:22 -0500
From: Todd <no_spam@null.com>
Subject: Re: CGI.pm and lost carriage returns
Message-Id: <e9oh0a$15c$1@home.itg.ti.com>

Joseph Czapski wrote:
> Hi, Perl practitioners.  I'm having a problem with CGI.pm.  If I have an 
> HTML form with a textarea input box, I would like my Perl program to see the 
> carriage returns that the user typed in so I can format his text 
> appropriately.
> 
> Using
> 
>      $value = $q->param($name);
> 
> gives me the text with all the carriage returns deleted.  Some words are 
> just stuck together where they were separated by only one or more carriage 
> returns.
> 
> I like to use CGI.pm for the neatness and the file uploading capability.
> 
> Thanks for your help!
> 
> Joe Czapski
> Boston, Mass.
> 
> 
> 
Did you try printing the result out as:

print "<hr /><pre>$value</pre><hr />";

Todd


------------------------------

Date: 20 Jul 2006 19:00:40 GMT
From: xhoster@gmail.com
Subject: Re: CGI.pm and lost carriage returns
Message-Id: <20060720150610.126$Re@newsreader.com>

usenet@DavidFilmer.com wrote:
> Joseph Czapski wrote:
> > Hi, Perl practitioners.  I'm having a problem with CGI.pm.  If I have
> > an HTML form with a textarea input box, I would like my Perl program to
> > see the carriage returns that the user typed in so I can format his
> > text appropriately.
>
> I think CGI is a great module, but the one fault that I would find is
> the sloppy and incomplete perldocs.  I cannot think of a Perl builtin
> module that has worse documentation.

I don't think it is a module's documentation's job to document stuff
outside of the module.  It is great if it happens to point out some outside
gotchas, but that is not what it is primarily there for.

>
> IMHO, If someone wants to do serious CGI programming, s/he really needs
> to get a book that fills in the gaping holes in the perldocs.

Yes, especially the gaping holes that have nothing to do with Perl.
There are plenty of resources on the web for this.

> Unfortunately, the selection is neither wide nor particularly good.  I
> have the "Official Guide to Programming with CGI.pm" by Lincoln Stein
> (the author of the module), which is kinda like an annotated version of
> the perldocs. But, at least, it has fairly complete information.
>
> Page 261-262 of the "Official Guide" describes the behavior of the
> textarea's wrapping properties, which is controlled by a "-wrap"
> argument (which is not mentioned in any way in the perldocs).

And, in fact, not mentioned in any relevant way in the CGI.pm source code
either.  -wrap is merely passed on to the html directly without any
specific interpretation on the part of CGI.pm.

>
> <quote>
> -wrap: Sets the WRAP attribute. It can be one of "off," "physical," or
> "virtual."  If "off," word wrapping only occurs in the field when the
> user presses the Enter key. The contents of the field are transmitted
> to your script with line breaks inserted exactly as they were displayed
> to the user. If "physical," word wrapping occurs automatically when the
> text exceeds the width of the field, and the text is transmitted to
> your script as if the user had actually transmitted it that way.  If
> "virtual," word wrapping occurs automatically when the text exceeds the
> width of the field, but the contents of the field are transmitted to
> your script as a single unbroken line of text (unless the user inserts
> a blank line manually).
> </quote>

That description seems to be quite inaccurate.  The behavior of the wrap
attribute depends on what browser you are using, but as far as I can tell
no modern browser behaves the way that description says.  I think that is
an excellent argument for not including it in the perldoc.  Also, it does
not cover "hard" or "soft".

>
> Of course, someone who was rather familiar with HTML itself could
> probably guess how WRAP (which is an HTML property) is implemented in
> CGI.pm.  Personally, though, I use CGI precisely because I DON'T want
> to fool with the oddities of HTML.

Unfortunately, the oddities of HTML cannot be entirely abstracted away, no
matter how much we wish they could be.

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service                        $9.95/Month 30GB


------------------------------

Date: Thu, 20 Jul 2006 19:08:36 GMT
From: "Joseph Czapski" <jczapski@nnnot.com>
Subject: Re: CGI.pm and lost carriage returns
Message-Id: <UwQvg.278$Wf.214@trndny01>

I previously wrote:
> Holy smoke, I think the WRAP attribute may be the issue.  I have it set to 
> 'virtual' on all forms.  I'm going to test that and then reply back.

Yup.  Setting WRAP to 'physical' solved the problem.  I had to add some 
additional code, too:

   $value =~ s/(\S)\s*?\x0A\s*\x0A\s*?(\S)/$1<br><br>$2/g;
   $value =~ s/(\S)\s*?\x0D\s*\x0D\s*?(\S)/$1<br><br>$2/g;
   $value =~ s/\s*\x0A\s*/ /g;
   $value =~ s/\s*\x0D\s*/ /g;

The 'physical' wrap isn't so great, either.  It sends a line break at every 
wrapping point.  But that's OK, because I can get the formatting I desire by 
preserving just the double (or greater) line breaks as <br><br>, and 
replacing the single line breaks with a space.  I tried to do this in a 
platform independent way in the above code.  It tests out well.

Thanks again to all who replied!

Joe Czapski
Boston, Mass.





------------------------------

Date: Thu, 20 Jul 2006 20:56:20 GMT
From: "Joseph Czapski" <jczapski@nnnot.com>
Subject: Re: CGI.pm and lost carriage returns
Message-Id: <U5Svg.9951$Zf.818@trndny07>

Xho wrote:
 ...
> That description seems to be quite inaccurate.  The behavior of the wrap
> attribute depends on what browser you are using, but as far as I can tell
> no modern browser behaves the way that description says.  I think that is
> an excellent argument for not including it in the perldoc.  Also, it does
> not cover "hard" or "soft".
 ...

You're right!  Further testing shows me that the 'physical' wrap of the 
textarea box does NOT behave as described in the HTML spec. when using 
Internet Explorer.  The form does not return newlines at each wrap point, 
but returns only newlines typed by the user.  I was taking the spec. as 
truth.

This is good news actually.  Now I can know exactly where the user typed 
newlines, and format appropriately.

Joe Czapski
Boston, Mass.




------------------------------

Date: Thu, 20 Jul 2006 23:05:03 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: CGI.pm and lost carriage returns
Message-Id: <4ia9dbF2s1m1U1@individual.net>

Joseph Czapski wrote:
> I think the WRAP attribute may be the issue.  I have it set to 
> 'virtual' on all forms.

Really? The 'wrap' attribute is not mentioned in the HTML 4.01 
Specification, not even as deprecated, and various browsers may (and do) 
ignore some of the wrap variants.

I think you should consider to not let the textarea width determine the 
text formating, but instead use a module, e.g. Text::Format, for the 
purpuse.

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


------------------------------

Date: Thu, 20 Jul 2006 21:26:55 -0000
From: Justin C <justin.0607@purestblue.com>
Subject: Re: CGI.pm and lost carriage returns
Message-Id: <slrnebvt5u.33b.justin.0607@moonlight.purestblue.com>

On 2006-07-20, David Squire <David.Squire@no.spam.from.here.au> wrote:
>
> How and where are you displaying $value to make this judgment? In a web 
> browser? If so, not that HTML does not recognize carriage returns - it 
> uses <BR> (or <BR/> for XHTML :) ) to indicate line breaks.

I don't like to get pedantic but I like even less incorrect information
being passed on.

XHTML is lower case only, at least from 1.0 onwards. So that'd be <br/>.


	Justin.

-- 
Justin C, by the sea. 


------------------------------

Date: Thu, 20 Jul 2006 22:54:00 +0100
From: David Squire <David.Squire@no.spam.from.here.au>
Subject: Re: CGI.pm and lost carriage returns
Message-Id: <e9ou1o$kh2$1@gemini.csx.cam.ac.uk>

Justin C wrote:
> On 2006-07-20, David Squire <David.Squire@no.spam.from.here.au> wrote:
>> How and where are you displaying $value to make this judgment? In a web 
>> browser? If so, not that HTML does not recognize carriage returns - it 
>> uses <BR> (or <BR/> for XHTML :) ) to indicate line breaks.
> 
> I don't like to get pedantic but I like even less incorrect information
> being passed on.
> 
> XHTML is lower case only, at least from 1.0 onwards. So that'd be <br/>.

Yikes. I had no idea. Thanks for that. No browser that I know of yet cares.

I had (wrongly) assumed that it continued the (perhaps de facto) case 
insensitivity of HTML.

I must admit that I can't see any advantage to case-sensitivity for 
XHTML tokens, particularly given the history of HTML.


DS


------------------------------

Date: 20 Jul 2006 11:10:18 -0700
From: usenet@DavidFilmer.com
Subject: Re: Clock
Message-Id: <1153419018.563712.308670@p79g2000cwp.googlegroups.com>

TheOrangeRemix wrote:
> For example, I if I run the program, set today's date and time on the
> interface: July 20, 2006 10:40 AM, it will output the result into an
> array like this:
>
> @runtime = (0, 40, 10, 20, 6, 2006); ### (seconds, minutes, hours, day,
>
> I guess there are two questions involved: how do I call the described
> API and how does it get placed into an array for processing?

You can use a module like Date::Manip to convert the man-readable date
to something your system can understand. Date::Manip can also provide
the info for the array, or you could use Perl's own gmtime/localtime
function (which outputs in array form if called in array context - you
just use a [0-5] slice to get what you want in @runtime).

-- 
David Filmer (http://DavidFilmer.com)



------------------------------

Date: Thu, 20 Jul 2006 20:27:20 +0200
From: =?ISO-8859-1?Q?Markus_H=E4nchen?= <youcontrol@hispeed.ch>
Subject: Re: Getting started in PXPerl, i.e how to run a script?
Message-Id: <44bfcb07@news1.ethz.ch>

> I don't run Perl on Windows myself, but ActiveState seems to be what 
> everybody on Windows uses.
> 
> 
> Chris Mattern
> on Windows uses.

Thanks, I am going to try it out on the next machine.
Markus




------------------------------

Date: 20 Jul 2006 14:58:53 -0700
From: lily12a@gmail.com
Subject: hex file
Message-Id: <1153432732.944583.305520@75g2000cwc.googlegroups.com>

Hello,

Please help if anyone knows. I would highly appreciate it. This is my
question.

Input array will include values:  4C, 49, 4C, 59
How to assign these values in to an array of hex value.

Thanks,



------------------------------

Date: Thu, 20 Jul 2006 23:00:57 +0100
From: David Squire <David.Squire@no.spam.from.here.au>
Subject: Re: hex file
Message-Id: <e9ouep$lb8$1@gemini.csx.cam.ac.uk>

lily12a@gmail.com wrote:
> Hello,
> 
> Please help if anyone knows. I would highly appreciate it. This is my
> question.
> 
> Input array will include values:  4C, 49, 4C, 59
> How to assign these values in to an array of hex value.
> 

What have you tried?


------------------------------

Date: 20 Jul 2006 15:04:48 -0700
From: usenet@DavidFilmer.com
Subject: Re: hex file
Message-Id: <1153433088.746880.18430@m79g2000cwm.googlegroups.com>

lily...@gmail.com wrote:

> Input array will include values:  4C, 49, 4C, 59
> How to assign these values in to an array of hex value.

Those appear to already be hex values...

By the way, you may find this info interesting:
   http://www.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html

-- 
David Filmer (http://DavidFilmer.com)



------------------------------

Date: Thu, 20 Jul 2006 13:24:24 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Need compress-zlib example for textfile into .gz
Message-Id: <slrnebviio.erj.tadmc@magna.augustmail.com>

Marc Bauer <marc.bau@gmx.net> wrote:


> i tryed this 


You should always enable warnings when developing Perl code!


> and it produces corrupt files.


And perl will tell you why, but only if you ask it to.


> use Compress::Zlib;
> 
> my $tmpdir='./tmp';
> my $outputdir='.';
> 
> my $inputfile="$tmpdir/test.txt";
> my $outputfile="$outputdir/test.txt.gz";
> 
> binmode FILE;


   binmode() on unopened filehandle FILE at ...


> open (FILE, '<', $inputfile) or die "Could not open $inputfile: $!\n";


binmode() the filehandle after you actually _have_ a filehandle,
ie. _after_ a successful open().


-- 
    Tad McClellan                          SGML consulting
    tadmc@augustmail.com                   Perl programming
    Fort Worth, Texas


------------------------------

Date: Thu, 20 Jul 2006 20:40:18 +0200
From: "Marc Bauer" <marc.bau@gmx.net>
Subject: Re: Need compress-zlib example for textfile into .gz
Message-Id: <e9oimj$8ca$01$1@news.t-online.com>

> What you posted worked perfectly for me.  It created test.txt.gz in the
> current directory.  I then gunzipped that file and saw my original
> file.
>
> By what means are you determining that the files it produces are
> "corrupt"?

if i'm unzipping the file it tells me error in archive...

this textfile created one the fly... just in the same script. but i have 
closed the test.txt 5 lines befor. so it shouldn't be possible that this 
file is in access...

i'm using ActivePerl 5.8.8 on Windows... i will try the small script i 
posted with a different text file and see if this will change something... 
but this is no help...


Marc 




------------------------------

Date: 20 Jul 2006 12:09:34 -0700
From: "Paul Lalli" <mritty@gmail.com>
Subject: Re: Need compress-zlib example for textfile into .gz
Message-Id: <1153422574.297691.46120@m79g2000cwm.googlegroups.com>

Marc Bauer wrote:
> > What you posted worked perfectly for me.  It created test.txt.gz in the
> > current directory.  I then gunzipped that file and saw my original
> > file.
> >
> > By what means are you determining that the files it produces are
> > "corrupt"?
>
> if i'm unzipping the file it tells me error in archive...

Are you 'unzipping', or *g*unzipping?

> this textfile created one the fly... just in the same script. but i have
> closed the test.txt 5 lines befor. so it shouldn't be possible that this
> file is in access...

So in other words, the code you posted that you claimed didn't work
*isn't* the actual code you're using.  I'm growing less and less
interested in helping you.  Have you read the posting guidelines for
this group yet?

> i'm using ActivePerl 5.8.8 on Windows... i will try the small script i
> posted with a different text file and see if this will change something...
> but this is no help...

You've been given a *lot* of help, despite your own reluctance to make
it easy to help you.  You should be a lot more grateful than you are
right now.

Paul Lalli



------------------------------

Date: Thu, 20 Jul 2006 21:07:42 +0200
From: "Marc Bauer" <marc.bau@gmx.net>
Subject: Re: Need compress-zlib example for textfile into .gz
Message-Id: <e9ok9u$bpq$01$1@news.t-online.com>

hi

> You should always enable warnings when developing Perl code!

yes... i know and i have, but my PC at work haven't warned me...

>> and it produces corrupt files.
> And perl will tell you why, but only if you ask it to.

And how? i have CRC errors...

> binmode() the filehandle after you actually _have_ a filehandle,
> ie. _after_ a successful open().

i change this, but the CRC stay there...


Regards
Marc 




------------------------------

Date: Thu, 20 Jul 2006 21:30:34 +0200
From: "Marc Bauer" <marc.bau@gmx.net>
Subject: Re: Need compress-zlib example for textfile into .gz
Message-Id: <e9olkr$87j$03$1@news.t-online.com>

my textfile is 12MB in size... once i saw the problem after the 10.000 line 
in the textfile... do i need to buffer something here? how is this done?

Marc 




------------------------------

Date: Thu, 20 Jul 2006 21:40:48 +0200
From: "Marc Bauer" <marc.bau@gmx.net>
Subject: Re: Need compress-zlib example for textfile into .gz
Message-Id: <e9om80$l5r$00$1@news.t-online.com>

hi

> Are you 'unzipping', or *g*unzipping?

i compress a text file to .gz - therefor gzip-ping.

> So in other words, the code you posted that you claimed didn't work
> *isn't* the actual code you're using.  I'm growing less and less
> interested in helping you.  Have you read the posting guidelines for
> this group yet?

The posted code is the code i'm trying / using. i have extracted this part 
and tested this part alone now and it is not working, for sure. everytime a 
CRC error!


Regards
Marc 




------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 9503
***************************************


home help back first fref pref prev next nref lref last post