What about the xmp and /xmp tag in place of pre and /pre?
> ___
> Perl-Win32-Web mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Web mailing li
> > I think what you looking to do is this:
> >
> > if (open(TXT,"< G:/Dropbox/SMatte/WebRoot/test/bs.txt")) {
> > print join('',);
> > close(TXT);
> > }
> >
> > Check out the ActivePerl documentation file in
> C:\Perl\Docs\ActivePerl.chm
> > provided you installed Perl on your C: drive.
> >
Brož Jiří wrote:
> 1. Your file contains \r\r\n (\015\015\012) sequences. It occurs when a file with
>"\r\n"s is read into Perl script some "binary way" and then written out in a text
>mode. In text mode all "\n" are changed to "\r\n" (and so "\r\n" are changed to
>"\r\r\n")
Not that I saw -
At 06:24 PM 04/10/2002, sunil matte wrote:
>Hi all
> Thanks for your suggestions.. I did write a
>small snippet of code as suggested
>
>print "Content-type: text/plain\n\n";
>
>if (open TXT1,"G:/Dropbox/SMatte/WebRoot/test/bs.txt")
>) {
>@array=;
>print @array;
>close(TXT1);
>} # if
>
" if the
file is read in text mode
print "Content-type: text/html\n\n";
print "$buffer"; # white spaces are preserved
}
HTH
JB
-----Original Message-
From: sunil matte [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 3:24 AM
To: [EMAI
Enye Software wrote:
> I think what you looking to do is this:
>
> if (open(TXT,"< G:/Dropbox/SMatte/WebRoot/test/bs.txt")) {
> print join('',);
> close(TXT);
> }
>
> Check out the ActivePerl documentation file in C:\Perl\Docs\ActivePerl.chm
> provided you installed Perl on your C: drive.
>
t the Perl Cookbook and Programming Perl from O'Reilly.
Indespensible for newbies.
- Original Message -
From: "sunil matte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 1:24 AM
Subject: Re: howto display text file as it is
> Hi all
&
Hi all
Thanks for your suggestions.. I did write a
small snippet of code as suggested
print "Content-type: text/plain\n\n";
if (open TXT1,"G:/Dropbox/SMatte/WebRoot/test/bs.txt")
) {
@array=;
print @array;
close(TXT1);
} # if
else
{ print "Failed to open file\n";
}
But it still do
. Ivey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 06, 2002 4:14 PM
Subject: Re: howto display text file as it is
> sunil matte <[EMAIL PROTECTED]> wrote:
>
> > But i want
> > people to be able to save that file.If they do so wi
sunil matte <[EMAIL PROTECTED]> wrote:
> But i want
> people to be able to save that file.If they do so with
> the code then they will have all the tags.so i
> am just wondering if there is some other way to do
> it...like writing some instruction in the file that
> makes the browser to display
Yes you could change the output header to "Content-type: text/plain\n\n";
- Original Message -
From: "sunil matte" <[EMAIL PROTECTED]>
To: "Christopher J. Crane" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, April 06, 2002 12:
hi crane,
Thanks for your reply. Yeah i can write a
small snippet of code to do what u said.But i want
people to be able to save that file.If they do so with
the code then they will have all the tags.so i
am just wondering if there is some other way to do
it...like writing some
12 matches
Mail list logo