| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | RE: [ECS] #@^%$#@^%$ PERL! Michael David Sat, 1 Jul 2000 15:17:23 -0400 |
Hi Rob!
I did this:
open (TOP, "<[path to file]") or die "top.htm: $!\n";
while (<TOP>) { $header .= $_
}
close TOP;
print $header;
If anyone knows of a better way, I’d sure love to hear about it. :-)
Cheers!
Michael David
michael@michaeldavid.com
-----Original Message-----
From: Rob [mailto:robhicks@utah-inter.net]
Sent: Saturday, July 01, 2000 11:27 AM
To: ecs-list@netbloc.com
Subject: RE: [ECS] #@^%$#@^%$ PERL!
Michael,
So, how did you do it? I was looking but never figured it out.
Rob
-----Original Message-----
From: Michael David [mailto:michael@michaeldavid.com]
Sent: Friday, June 30, 2000 11:49 PM
To: ecs-list@netbloc.com
Subject: RE: [ECS] #@^%$#@^%$ PERL!
I finally figured it out – what a pain! :-)
Cheers!
Michael David
michael@michaeldavid.com
-----Original Message-----
From: Michael David [mailto:michael@michaeldavid.com]
Sent: Friday, June 30, 2000 9:43 PM
To: ecs-list@netbloc.com
Subject: RE: [ECS] #@^%$#@^%$ PERL!
Hi Rob!
I was all through there before, and I didn’t see it. I’m thinking it’s such
a simple function that it’s assumed that everyone know how to do it.
Everyone except me, of course! :-)
Cheers!
Michael David
michael@michaeldavid.com
-----Original Message-----
From: Rob [mailto:robhicks@utah-inter.net]
Sent: Friday, June 30, 2000 9:30 PM
To: ecs-list@netbloc.com
Subject: RE: [ECS] #@^%$#@^%$ PERL!
See http://www.perl.com/pub/v/documentation.
-----Original Message-----
From: Michael David [mailto:michael@michaeldavid.com]
Sent: Friday, June 30, 2000 6:35 PM
To: Ecs-List@Netbloc.Com
Subject: [ECS] #@^%$#@^%$ PERL!
Hi Folks!
Someone tell me Perl is so damn obscure!
After that, perhaps you can answer this:
I written a perl script that has a bunch of HTML in it. I am displaying the
HTML using this command:
print<<"[/HTML]";
….HTML stuff here…
[/HTML]
Now – all I want to do is simply extract all this HTML, and have the script
get it from external files. It’s really a simple thing, only I can’t find
the proper syntax to do it.
I just know one of you guys will have the answer!
Also, do any of you know where I can find a simple Perl command reference
online?
……I hate Perl……..I hate Perl………I hate Perl………
Cheers!
Michael David
michael@michaeldavid.com
Hi Rob!
I did
this:
open (TOP,
"<[path to file]") or die "top.htm: $!\n";
while
(<TOP>) { $header .= $
}
close
TOP;
print
$header;
If anyone
knows of a better way, I’d sure love to hear about it. J
Cheers!
Michael
David
michael@michaeldavid.com
-----Original
Message-----
From: Rob
[mailto:robhicks@utah-inter.net]
Sent: Saturday, July 01, 2000
11:27 AM
To: ecs-list@netbloc.com
Subject: RE: [ECS] #@^%$#@^%$
PERL!
Michael,
So, how did you do it? I was looking but never
figured it out.
Rob
-----Original
Message-----
From: Michael David
[mailto:michael@michaeldavid.com]
Sent: Friday, June 30, 2000 11:49
PM
To: ecs-list@netbloc.com
Subject: RE: [ECS] #@^%$#@^%$
PERL!
I finally figured it out – what a pain! J
Cheers!
Michael David
michael@michaeldavid.com
-----Original
Message-----
From: Michael David
[mailto:michael@michaeldavid.com]
Sent: Friday, June 30, 2000 9:43
PM
To: ecs-list@netbloc.com
Subject: RE: [ECS] #@^%$#@^%$
PERL!
Hi Rob!
I was all through there before, and I didn’t see
it. I’m thinking it’s such a
simple function that it’s assumed that everyone know how to do it. Everyone except me, of course! J
Cheers!
Michael David
michael@michaeldavid.com
-----Original
Message-----
From: Rob
[mailto:robhicks@utah-inter.net]
Sent: Friday, June 30, 2000 9:30
PM
To: ecs-list@netbloc.com
Subject: RE: [ECS] #@^%$#@^%$
PERL!
See http://www.perl.com/pub/v/documentation.
-----Original
Message-----
From: Michael David
[mailto:michael@michaeldavid.com]
Sent: Friday, June 30, 2000 6:35
PM
To: Ecs-List@Netbloc.Com
Subject: [ECS] #@^%$#@^%$ PERL!
Hi Folks!
Someone tell me Perl is so damn obscure!
After that, perhaps you can answer this:
I written a perl script that has a bunch of HTML in
it. I am displaying the HTML using
this command:
print<<"[/HTML]";
….HTML stuff here…
[/HTML]
Now – all I want to do is simply extract all this
HTML, and have the script get it from external files. It’s really a simple thing, only I can’t find the proper
syntax to do it.
I just know one of you guys will have the answer!
Also, do any of you know where I can find a simple
Perl command reference online?
……I hate Perl……..I hate Perl………I hate Perl………
Cheers!
Michael David
michael@michaeldavid.com