Re: Reading a file from point A to B

2001-04-16 Thread Joe Schell
Gary Nielson wrote: > > Hi, > > I am trying to figure out the best way to read a file from point A to > point B. For example, I have a file with many specialized tags that start > on one line and then the end tag is a few lines down and I want to be able > to 1) recognize when the tag starts, 2)

Re: ActivePerl vs. Build-From-Source

2001-04-16 Thread Joe Schell
Charles Barilleaux wrote: > > Hi! > > I'm a long-time ActivePerl user, but recently became intriuged with the > notion of building my own copy of Perl from source. I did so on a > development box for my own amusement, and, along with building a lot of > extras, was able to get most of my scripts

RE: setting perl interpreter for asp, perl 5.6.x

2001-04-16 Thread Toby Stuart
maybe you could try something simpler, say; <%@ LANGUAGE="PerlScript" %> <% $Response->Write("Hello World !"); %> try running this. should simply print "Hello World !" to your browser. t0by > -Original Message- > From: john z [SMTP:[EMAIL PROTECTED]] > Sent: 17/04/2001 12:54 > To: T

RE: setting perl interpreter for asp, perl 5.6.x

2001-04-16 Thread Justin Rogers
I don't think PerlScript worked correctly until 5.6.0.620 or later under IIS 5.0. Depending on what version of PerlScript and what version of IIS you have you may be seeing some of these issues. Justin Rogers [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED]

RE: setting perl interpreter for asp, perl 5.6.x

2001-04-16 Thread Toby Stuart
what's the error? any example code? you do know that <%@ perlscript> really looks like <%@ LANGUAGE="PerlScript" %> ... i guess you were abbreviating it. t0by > -Original Message- > From: john z [SMTP:[EMAIL PROTECTED]] > Sent: 17/04/2001 12:31 > To: [EMAIL PROTECTED] > Subject:

setting perl interpreter for asp, perl 5.6.x

2001-04-16 Thread john z
i wonder if somebody knows how to fix the following. when i run an asp, it seems that the <%@ perlscript> tags get ignored. i know that perlscript is running ok, cause the code wrapped with

Re: Reading a file from point A to B

2001-04-16 Thread $Bill Luebkert
Gary Nielson wrote: > > Hi, there: > > What does the == 2 do in the line below? > > > $var = $_ if ( m!! .. m!! ) == 2; This info IS available in the docs (from perlop pod): The value returned is either the empty string for false,

Assigning Share Permissions

2001-04-16 Thread Dean Theophilou
Hello: Does anyone know which module allows you to assign share level (NOT NTFS)permissions? Will the Win32::NetResource module allow you to do this? Thanks. Dean Theophilou Genisar ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://

Re: Reading a file from point A to B

2001-04-16 Thread Gary Nielson
Hi, there: What does the == 2 do in the line below? > $var = $_ if ( m!! .. m!! ) == 2; On Mon, 16 Apr 2001, Nick Pomponio wrote: > At 03:24 PM 4/16/2001, you wrote: > >Hi, > > > >I am trying to figure out the best way to read a file from point A to > >point B. For example, I have a file

Fw: Whoops! CLARIFICATION: Reading a file from point A to B

2001-04-16 Thread Andy Jennings
Gary To grab the lines between tags and include the tags then you can use code like the following:- open(HTM, "file_to_scan.txt"); @lines = ; close(HTM); $longline = join "\n", @lines; $longline =~ s/()//si; print $1; $result = $1; $result now contains the first match in the file or

Re: Scan help

2001-04-16 Thread Sisyphus
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 6:22 AM Subject: Scan help > I have a variable that contains "\rmcnt\public", I want to change it to > "rmcnt\\public " > Hi Bill, #!perl -w $var = '\rmcn

Re: Reading a file from point A to B

2001-04-16 Thread Ron Grabowski
> my( $var ); > while( <> ) { > $var = $_ if ( m!! .. m!! ) == 2; > # Other line-by-line processing, if any, goes here. > } For those who are boggled by that, its explained in the Cookbook: while (<>) { if (/BEGIN PATTERN/ .. /END PATTERN/) { # line falls between BEGIN and E

PPM: package repository has changed?

2001-04-16 Thread Brian McDonald
Out of curiosity I decided to revisit the PPM problem I had last week. I found, by looking in the PPM configuration file (ppm.xml) for my distribution (5.6.0.613), that my version of PPM points at what appears to be an old package repository: http://www.activestate.com/packages/ I've searched t

Re: Scan help

2001-04-16 Thread Andy Jennings
Bill It looks ugly, I know, but it works... $myvariable =~ s/\\rmcnt\\public/rmcntpublic /; Add the g option if there are multiple instances of the string to change in the variable Andy - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAI

Re: What are the differences between grep and map?

2001-04-16 Thread Carl Jolley
On Mon, 16 Apr 2001, Rousseau, Paul wrote: > Hello, > >the 623 version, perlfunc descriptions of grep and map functions do not > readily distinguish themselves. Can anyone provide reasons for using one > over the other? > The map function is a one-for-one function. The grep allow one to pic

What are the differences between grep and map?

2001-04-16 Thread Rousseau, Paul
Hello, the 623 version, perlfunc descriptions of grep and map functions do not readily distinguish themselves. Can anyone provide reasons for using one over the other? Thank you. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.Ac

Re: Reading a file from point A to B

2001-04-16 Thread Nick Pomponio
At 03:24 PM 4/16/2001, you wrote: >Hi, > >I am trying to figure out the best way to read a file from point A to >point B. For example, I have a file with many specialized tags that start >on one line and then the end tag is a few lines down and I want to be able >to 1) recognize when the tag start