Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Ray Barker
Hi all-- Please add my 32 years of programming experience to the perl is a high level language side. Good thing "will" didn't suggest that some python experience would be adequate for entrance to the class! I don't think that it will be profitable for you to argue with a professor on this subje

Re: html to SQL script

2001-08-17 Thread jim-ryan
Let me speculate that the html files are WEB Pages, and that somehow (in the future) you will need to pull the pages out of the DATABASE and display them (after an HTTP request) You need: An SQL DATABASE Mysql msql postgresql perl DBI module DBD::CSV ## doesn't need a separate d

Re: PERL / UNIX File manipulation

2001-08-17 Thread Elaine -HFB- Ashton
David Gilden [[EMAIL PROTECTED]] quoth: *> *>mycomputer% perl -ews foreach $files (<./*>) {rename($file,"new-$file");} *> *>Am I on the right track? To pain, yes :) Check out File::Find and you might also learn the joys of your shell with sed and awk :) http://www.perlfaq.com/cgi-bin/view?view_

Re: Trouble with CPAN

2001-08-17 Thread Elaine -HFB- Ashton
patrick hall [[EMAIL PROTECTED]] quoth: *>Error reading from *>/root/.cpan/sources/authors/01mailrc.txt: *> *>My suspicion is that 01mailrc.txt has issues. Should I *>just delete it? Well, assuming that you are root given the path, delete the file manually, check the mirror you have in your con

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Jeff 'japhy/Marillion' Pinyan
On Aug 17, Jon Acierto said: >"i have to agree with will's assessment. perl is not a high level >language. it amounts to a scripting language. simply having 2 years of >working with perl says nothing about whether he has worked on more complex >problems or has developed the programming skills nec

Re: html to SQL script

2001-08-17 Thread Jim Conner
At 11:14 PM 08.17.2001 -0500, Teresa Raymond wrote: >I have never worked with SQL before but I need to dump about 900 html >files into a SQL database. Someone else has written a PHP script to put >the content of the html pages in the database but you can only do it one >page at a time by submi

RE: PERL IS NOT A HIGH LEVEL LANGUAGE and What is a Script

2001-08-17 Thread Jim Conner
At 04:41 PM 08.17.2001 -0700, Dean Theophilou wrote: >Hello: > > I understand what you're saying but the fact remains: STRICTLY > speaking, >Perl is NOT an interpreted language (such as the BASIC language I learned in >high school, many, many years ago). Just a minor correction (semantic

html to SQL script

2001-08-17 Thread Teresa Raymond
I have never worked with SQL before but I need to dump about 900 html files into a SQL database. Someone else has written a PHP script to put the content of the html pages in the database but you can only do it one page at a time by submitting a form with the relevant contents copied and past

RE: PERL IS NOT A HIGH LEVEL LANGUAGE and What is a Script

2001-08-17 Thread Dean Theophilou
Oh, ok. I thought that you were in some way disagreeing. Cool. Thanks for the clarification. I appreciate it. Dean Theophilou Genisar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 6:21 PM To: Dean Theophilou Cc: [EMAIL PROTECTED

Trouble with CPAN

2001-08-17 Thread patrick hall
Hi, I'm having trouble installing stuff from CPAN. Apparently I should install something called Net:FTP 'as soon as possible' (scawwy!), because it says that every time I try to install anything. But it must not be absolutely necessary, since I have managed to install a couple of modules. I th

Re: PERL IS NOT A HIGH LEVEL LANGUAGE and What is a Script

2001-08-17 Thread smoot
> "Dean Theophilou" <[EMAIL PROTECTED]> said: > I understand what you're saying but the fact remains: STRICTLY speaking, > Perl is NOT an interpreted language (such as the BASIC language I learned in > high school, many, many years ago). Sure, there is an interpreter, but > there is also a

Re: RegEx Help Unless There's a smarter way

2001-08-17 Thread D . M . Monarres
Not an expert but is the problem that you are using single quotes instead of double. When you use single quotes variables aren't interpreted. -- D. M. Monarres ([EMAIL PROTECTED]) Some people have parts that are so private they themselves have no knowledge of them. On Sat, 11 Aug 2001 16:03:15

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Lynn Glessner
> > However, because the educational institutions are so full of these types, > many colleges still require Cobol to be taken if you are pursuing a CS > degree. I suppose they think they're offering something useful that'll help > you in today's world of computers - that by itself shows how out

Re: timeout

2001-08-17 Thread Peter Scott
At 11:02 AM 8/16/01 -0500, Tyler Longren wrote: >Hello list, > >How should I go about setting a timeout for a section of code? I've >written some code to do a whois on a few hosts. Sometimes, it stay's on >one host for a few minutes, trying to connect to the whois server. > >Here's the code: >fo

Re: Removing Leading Zeros

2001-08-17 Thread Peter Scott
>Lightning flashed, thunder crashed and Walnut <[EMAIL PROTECTED]> >whispered: >| Why not split it into an array first: >| >| @fields =~ split(!/!, $string); >| >| $index = $fields(3); >| $value = $fields(5); > >This does not do what I think you think it does. ;-) Neither does this bit: >| @f

FTP and MD5

2001-08-17 Thread John Sands
I was connecting to an FTP server with this code: my $ftp = Net::FTP->new($ftp_server) or die "can't connect to ftp server at $ftp_server: $!"; $ftp->login($ftp_username, $ftp_password) or die "can't login to ftp server at $ftp_server with user $ftp_username: $!"; The FTP Server has been chang

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Peter Scott
University requirements have more to do with personal bias and politics than the real world, sad to say. Fighting this by proving that they're wrong is not likely to get you anywhere, you'll just piss them off. Find some other way to get in or go somewhere else. Of course, if fighting *does*

RE: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Dean Theophilou
Perl Brother: I like your call to arms! Someone once said that you can catch more flies with honey than with vinegar. That may be true, in the case of vinegar that is, but if you are intent on catching flies (don't ask why anyone would want to catch files, just accept the premise please

RE: PERL IS NOT A HIGH LEVEL LANGUAGE and What is a Script

2001-08-17 Thread Dean Theophilou
Hello: I understand what you're saying but the fact remains: STRICTLY speaking, Perl is NOT an interpreted language (such as the BASIC language I learned in high school, many, many years ago). Sure, there is an interpreter, but there is also a compile phase (which is the point you sorta

Re: constructor modification/inheritance

2001-08-17 Thread Peter Scott
At 04:39 AM 8/16/01 -0700, Blair Burns wrote: >Thanks for your reply, Peter. I think I didn't label >my packages clearly for you, which likely makes a big >difference ;-) If this tidbit changes your reply, let >me know. Not really. See below. > > The B in your code uses an X to connect, not A.

RE: Code for review

2001-08-17 Thread Peter Scott
At 12:28 PM 8/16/01 -0400, Yacketta, Ronald wrote: >Peter/All; > >Is this what you had in mind, offered as a suggestion? Heading in the right direction, but some syntactical derailments along the way. >if ($test = /($regex)/o) { Nope, you need to put $test in list context to save the result. >

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Jon
...how to respond to this... How about this: To Me My Perl Brothers!!! We must unite against this scourge and rid the world of this army of ignorant Anti-Perl programmers!!! (who keep company with the evil Orc cousins, the dreaded Cobols!) Romani and List: Wow, I didn't think that I would in

Re: Premature End of Script Headers

2001-08-17 Thread [EMAIL PROTECTED]
Are you sending the correct HTTP headers? print "Content-type: text/html\n\n"; # without CGI.pm print header(); # When using CGI.pm > I have been unable to get a .cgi script to work on my website. I accessed > the error log and saw the following errors: "Premature End of Script > Headers" a

Re: Would like to generate PDF output from text

2001-08-17 Thread [EMAIL PROTECTED]
on CPAN: Text::PDF another search: PDF::Create, which looks to me like your best bet. > Hi, > > I'm sure there's a module for this, but I haven't been able to find it. I > would like to format and generate PDF output for reports. I'm using > ActiveState Perl (I believe it's 5.6) on WinNT

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread M.W. Koskamp
- Original Message - From: <[EMAIL PROTECTED]> To: Jon Acierto <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, August 18, 2001 12:29 AM Subject: Re: PERL IS NOT A HIGH LEVEL LANGUAGE [...] Instead of only tring to comfort one another among ourselves, with all sorts of valid arg

Would like to generate PDF output from text

2001-08-17 Thread PeterFarrar
Hi, I'm sure there's a module for this, but I haven't been able to find it. I would like to format and generate PDF output for reports. I'm using ActiveState Perl (I believe it's 5.6) on WinNT. Does anyone have a pointer to the correct module? Peter -- To unsubscribe, e-mail: [EMAIL PROTEC

Premature End of Script Headers

2001-08-17 Thread Jonathan M. Morgan
I have been unable to get a .cgi script to work on my website. I accessed the error log and saw the following errors: "Premature End of Script Headers" and "Client Sent Malformed Host Header". Can someone please tell me what these errors mean and how I can fix them? Thus far I have been unable

Re: Associative array

2001-08-17 Thread Dusan Juhas
Hi, not directly. But do st. like: @foo = "some string"; @new_foo = split(//,$foo[0]); now you can access $new_foo[6] Not very witty but useful ;-) At 10:14 AM 8/14/01 -0700, Eric Wang wrote: >Hi guys, > >Got a quick question. >If I let @foo = "some string"; >can I access say the "t" in this st

Re: emptying an scalar variable

2001-08-17 Thread [EMAIL PROTECTED]
undef $line; $line = ""; $line = ''; > Hi all, can anyone tell me how to empty an scalar variable once a > condition is met? I am doing something like this: > > $line .= $_ > > if ($_ =~ /something/) { > > print $line; > > empy $line; > } > > Any help welcome? > > -- > *

Re: emptying an scalar variable

2001-08-17 Thread [EMAIL PROTECTED]
undef $line; $line = ""; $line = ''; > Hi all, can anyone tell me how to empty an scalar variable once a > condition is met? I am doing something like this: > > $line .= $_ > > if ($_ =~ /something/) { > > print $line; > > empy $line; > } > > Any help welcome? > > -- > *

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread RomaniF
Jon and List: Sometimes in life it is necessary to fight back, not because it is a good exercise, but rather to try to correct injustices and misguided minds. In this particular case Jon has been deprived of access to an employment opportunity, just because there is an uninformed individual,

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread smoot
> "Dean Theophilou" <[EMAIL PROTECTED]> said: > Technically, Perl is NOT an interpreted language. The Perl interpreter > converts the program into byte code before executing, just like C. This is > a paraphrase of p. 31 of Perl in a Nutshell, by O'Reilly. I suggest you get > the book, si

RE: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Steve Howard
Once again we see this truth: Those who can, do. Those who can't, teach...and come up with their own definitions of things like this showing how little experience they really have with real world situations. I'm sure their explanation makes themselves feel superior, and at the same time shows the

RE: emptying an scalar variable

2001-08-17 Thread Bob Showalter
> -Original Message- > From: Pedro A Reche Gallardo [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 4:33 PM > To: [EMAIL PROTECTED] > Subject: emptying an scalar variable > > > Hi all, can anyone tell me how to empty an scalar variable once a > condition is met? I am doing som

RE: Sort by time the logs for last one hour

2001-08-17 Thread Bob Showalter
> -Original Message- > From: Najamuddin, Junaid [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 4:06 PM > To: [EMAIL PROTECTED] > Subject: Sort by time the logs for last one hour > > > hi, > I am new to Perl > I wrote a script which basically pipe delimit the txt file > What

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Paul Johnson
Oh, what fun! One would hope for a possibly more enlightened attitude from academia. You have received a couple of full and useful replies already. The only defence I can assume for this sort of attitude is that it might be possible to use Perl for a couple of years without learning much about

RE: emptying an scalar variable

2001-08-17 Thread Gibbs Tanton - tgibbs
$line = ''; -Original Message- From: Pedro A Reche Gallardo [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 3:33 PM To: [EMAIL PROTECTED] Subject: emptying an scalar variable Hi all, can anyone tell me how to empty an scalar variable once a condition is met? I am doing somethin

emptying an scalar variable

2001-08-17 Thread Pedro A Reche Gallardo
Hi all, can anyone tell me how to empty an scalar variable once a condition is met? I am doing something like this: $line .= $_ if ($_ =~ /something/) { print $line; empy $line; } Any help welcome? -- *** PEDRO a. RECHE

Sort by time the logs for last one hour

2001-08-17 Thread Najamuddin, Junaid
hi, I am new to Perl I wrote a script which basically pipe delimit the txt file What I want to do is to sort the records along with delimit by time I need the out put to show logs for the last one hour Can some one help me on this the text file has a column showing start time which shows both da

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread M.W. Koskamp
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Jon Acierto <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, August 17, 2001 8:13 PM Subject: Re: PERL IS NOT A HIGH LEVEL LANGUAGE > > This thread is quite curious to me. Perl in most respects is a *highe

Re: hash of lists inconsistent key lookup

2001-08-17 Thread Michael Fowler
I've changed the subject of this thread. In the future, please post messages with a relevant subject line. On Fri, Aug 17, 2001 at 12:53:22PM -0600, Tyler Cruickshank wrote: > %browns = (); > > for($i=1; $i<=3; $i++){ > >$hour = "hr$i"; >$root = 'data.'; >$name = "$root$hour"; >

hash of arrays

2001-08-17 Thread Tyler Cruickshank
>>> "Tyler Cruickshank" <[EMAIL PROTECTED]> 08/17/01 12:53PM >>> Hi. I am working with a hash of arrays. Ive run into some confusion regarding the accessing and printing of the hash. Below are some excerpts of my code: I have an array (@data) that I will create in a nested for loop. I ful

FW: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Gene Martin
>Subject: PERL IS NOT A HIGH LEVEL LANGUAGE Just a note from a VERY NEWBIE; On my new copy of O-Reilly's Programming the Perl DBI, page 3 under the subheading of Perl, it states plainly that "Perl is a very high-level language." I have a hard time convincing my professors in college to take Perl

RE: Hi.

2001-08-17 Thread Bob Showalter
> -Original Message- > From: Tyler Cruickshank [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 2:53 PM > To: [EMAIL PROTECTED] > Subject: Hi. > > > Hi. > > I am working with a hash of arrays. Ive run into some > confusion regarding the accessing and printing of the hash.

RE: I am a real begginer to perl......

2001-08-17 Thread Smith, Jim R
Go buy Randal Schwartz's excellent book : Learning Perl (The llama book). It is the best learning text I've ever used. Regards, Jim -Original Message- From: Walnut [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 11:09 AM To: [EMAIL PROTECTED] Subject: Re: I am a real begginer to

RE: perldoc and pod2man

2001-08-17 Thread Bob Showalter
> -Original Message- > From: Sofia [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 2:40 PM > To: [EMAIL PROTECTED] > Subject: perldoc and pod2man > > > Is perldoc a module I need to install separately? No. perldoc is a script which comes with the standard perl distribution an

Hi.

2001-08-17 Thread Tyler Cruickshank
Hi. I am working with a hash of arrays. Ive run into some confusion regarding the accessing and printing of the hash. Below are some excerpts of my code: I have an array (@data) that I will create in a nested for loop. I fully populate the array and then assign it to a hash, I then go back

RE: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Dean Theophilou
I thought a cobol was a short little monster in Dungeons & Dragons that is distantly related to orcs. Dean Theophilou -Original Message- From: Humberto Varela [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 11:19 AM To: [EMAIL PROTECTED] Subject: Re: PERL IS NOT A HIGH LEVEL LA

perldoc and pod2man

2001-08-17 Thread Sofia
Is perldoc a module I need to install separately? Is pod2man a module to convert pod documentation to man pages? If so, where can I find it? Thanks is advance, __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messe

RE: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Mooney Christophe-CMOONEY1
HAHAHAHAHA !! -Original Message- From: Humberto Varela [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 1:19 PM To: [EMAIL PROTECTED] Subject: Re: PERL IS NOT A HIGH LEVEL LANGUAGE - the understanding of more advanced data structures...with 2 >years of serious cobol for example

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Humberto Varela
- the understanding of more advanced data structures...with 2 >years of serious cobol for example should bring familiarity with files, >records, and other such data types." Someone still programs in Cobol? I thought all those Cobol programmers died on New Years Day 2000? -- To unsubscribe, e-

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread smoot
This thread is quite curious to me. Perl in most respects is a *higher* level language than C or C++. It is certainly higher level than Cobol. Perl has a lot of built in operators and functions that make life extremely simple for doing text manipulation. I have written code in both Perl an

RE: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Dean Theophilou
Hello: Technically, Perl is NOT an interpreted language. The Perl interpreter converts the program into byte code before executing, just like C. This is a paraphrase of p. 31 of Perl in a Nutshell, by O'Reilly. I suggest you get the book, since it was written by real-world (as opposed

problem with a Hash of,Hashes of Hashes and MLDBM

2001-08-17 Thread Kiarash
Hi, thanx for considering my problem to read, you know i work for a company,they have a site,and their site has User ID and Password. they offer some links to their members,and they wanna track each user clicks. for example,they have 10 links,they want to know,how many times,each memebr ha

Re: Passing Scalar Reference to Subroutine

2001-08-17 Thread Michael Fowler
I'm responding to both messages (the original and the response) because I don't have the original. On Thu, Aug 16, 2001 at 01:21:16PM -0500, randy Peterman wrote: > I believe that you may need to add an ampersand "&" before the name of the > subroutine, like so: > if(!&isPresent(\$req, $user))

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Jon
Hmm, check this out: For background on this subject this is where they mention prereqs for the C++ program (near "Foundations..": http://www.extension.washington.edu/extinfo/certprog/cpp/cpp_hta.asp Now if you look at their main cert page below...they also offer a Perl cert course, This is th

problem with a Hash of,Hashes of Hashes and MLDBM

2001-08-17 Thread Kiarash
Hi, thanx for considering my problem to read, you know i work for a company,they have a site,and their site has User ID and Password. they offer some links to their members,and they wanna track each user clicks. for example,they have 10 links,they want to know,how many times,each memebr ha

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Kevin Meltzer
It amazes me when people in acadamia can be so non-academic. If I were you, I would ask what working definition (since it isn't the standard definition) of "high level" they are using, and low level as well. Being that a high level language is one which is passed through an interpreter or compiler

Re: Removing Leading Zeros

2001-08-17 Thread Stephen P. Potter
Lightning flashed, thunder crashed and Walnut <[EMAIL PROTECTED]> whispered: | Why not split it into an array first: | | @fields =~ split(!/!, $string); | | $index = $fields(3); | $value = $fields(5); This does not do what I think you think it does. ;-) This will try to call a function that is

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Curtis Poe
Jon, I feel your pain. Personally, I have worked with many, many programmers both in the USA and in Europe and have discovered something very interesting: if someone is critical of Perl, he or she doesn't know the language well. It may be that people who get into Perl and don't like it don'

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Michael Fowler
On Fri, Aug 17, 2001 at 09:46:49AM -0700, Jon Acierto wrote: > Can someone please help me explain to these people that writing Perl for 2 > years says about as much of my ability to program and understand "advanced > data structures" and having worked on "more complex problems" as spending > those

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Luke Bakken
This is pretty interesting, and shows the ignorance (and/or bias) of perople when it comes to programming languages. The "C++ application reviewer" sounds like a Grad student with something against "scripting languages" :-) > application reviewer and received this input: > "i have to agree with

PERL / UNIX File manipulation

2001-08-17 Thread David Gilden
Hi, How would you approach the following: in a directory (on a UNIX box) file-a file-b file-c file-d This what I like have after I run a script or a mysterious UNIX command: 1-file-a 2-file-b 3-file-c 4-file-d *** OR *** new-file-a new-file-b new-file-c new-file-d Possible script untest

RE: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Torres, Jose (CTG-Fin Sys)
All I can say is THOSE WHO CAN DO THOSE WHO CAN'T TEACH. NUFF SAID Jose A. Torres BUCS Global Production Support (212) 670-3874 - Office (800) 774-4156 - Pager (914) 632-4630 - Home > -Original Message- > From: jim-ryan [SMTP:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 1:02 PM

PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread jim-ryan
I had to reply again, The bit about "...with 2 years of serious cobol..." RUN to the nearest exit!! NOW!!! - Original Message - From: "Jon Acierto" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 17, 2001 12:46 PM Subject: PERL IS NOT A HIGH LEVEL LANGUAGE > Hello Guys

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread jim-ryan
Oops, you've run smack into "Academic Hubris". Someone who has not done anywork in perl would have to "agree with will's assessment"... I think both these guys (will and the C++ application reviewer) don't know a thing about perl (Cluelessness is bliss), and view it as a glorified DOS batch file

PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Jon Acierto
Hello Guys It's me again, After getting all the feedback from this maillist on my "High Level" question AND going to an online dictionary and finding out that Perl Does fit the definition of a high level language, I get this from the Admissions Councellor at the U.W. ext.: Jon, thank you for y

What OLE-excel command do I use from Perl to change the font?

2001-08-17 Thread Gross, Stephan
What OLE-excel command do I use from Perl to change the font? ___ Stephan Gross Loral Skynet 908-470-2388 [EMAIL PROTECTED]

Re: Simple HTML Page

2001-08-17 Thread Walnut
Outlook express saves files as text if you drag them to a folder. I am not sure about Outlook though. I think it saves as a binary format although there may be enough text in there to extract something. Check it out with a text editor like Textpad from www.textpad.com. Actually this is an excellen

Re: I am a real begginer to perl......

2001-08-17 Thread Walnut
#open and read open(FILE, "<$filename"); @alllinesinthefile = <>; close(FILE); #open and write. Append uses >> open(FILE, ">$filename"); print FILE @alllinesinthefile; close(FILE); #looping foreach $line ( @alllinesinthefile ) { #Do whatever you want # Go away and study regular expr

Re: pulling out part of a /path/to/a/file

2001-08-17 Thread Walnut
In your "wanted" subroutine, $_ contains the filename!! $File::Find::dir contains the directory $File::Find::name contains the lot. On Tue, 24 Apr 2001 09:52:04 -0700, [EMAIL PROTECTED] (Sandor W. Sklar) wrote: >Hi, folks ... > >I'm generating a list of files (from a find subroutine) and putt

Re: running a script from html

2001-08-17 Thread Walnut
On Sat, 21 Apr 2001 18:31:22 -0500, [EMAIL PROTECTED] (Chris Brown) wrote: >i was wondering if anyone could fill me in on how to run a cgi script automaticly >when an html page is loaded...reason being to show a random image on a page...thanks >chris brown Use Server Side Includes and make sure

Re: Another regular expression question?

2001-08-17 Thread Walnut
Suck the file into a single variable and: $entirefile =~ s!\/\*.*?\*\/!!g; On Fri, 20 Apr 2001 09:03:29 +0100, [EMAIL PROTECTED] (Yvonne Murphy) wrote: >I am also very new to Perl! I need to figure out how I could skip a >block of comments in a C header file. For example, if I have something

Re: cat a file

2001-08-17 Thread Walnut
Open them both in Outlook and drag the emails from one to the other. DO NOT try it any other way or you will corrupt the files. On Thu, 19 Apr 2001 16:27:31 -0400, [EMAIL PROTECTED] (Frank Drain) wrote: >Hello, > >I am very new to perl. I have two pst (personal folder files) that I want >to c

Re: Removing Leading Zeros

2001-08-17 Thread Walnut
Why not split it into an array first: @fields =~ split(!/!, $string); $index = $fields(3); $value = $fields(5); Just remember that arrays start at an index of zero so in each case you will be asking for the field you want - 1. On Thu, 19 Apr 2001 15:40:27 +, [EMAIL PROTECTED] (Mark Martin

Re: Directory Grepping WIN32

2001-08-17 Thread Walnut
Use the Perl version of find: Use File::Find; find(\&wanted, $startdirectory); sub wanted { if ( $File::Find::name =~ m/09\.html$/ ) { # Do whatever you want here to $File::FInd::name # e.g. push @foundfiles, "$File::Find::name"; } } On Wed, 18 Apr 2001 14:44:38 -0400, [E

Re: referencing and subroutines.

2001-08-17 Thread Walnut
Create the hash in the global part of the program. Pass a reference to the hash to the subroutine and manipulate that. On Tue, 17 Apr 2001 22:37:36 +0200, [EMAIL PROTECTED] (Martijn Van Exel) wrote: >Hi all, > >I'm new to this list and quite new to Perl. I'm on digest, so I'd >appreciate a cc.

Re: automatic cgi scripts?

2001-08-17 Thread Walnut
If you have no access to cron on your server and if your site is getting a reasonable number of hits, place a link to the script on your home page. Every time it runs it checks the time and if past 0800 hours runs your commands and sets a flag in a file to avoid running the command multiple times

RE: help with SWITCH

2001-08-17 Thread Bob Showalter
> -Original Message- > From: Yacketta, Ronald [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 8:58 AM > To: Beginners (E-mail) > Subject: help with SWITCH > > > Folks, > > I have this little bit of code that was recommended by Peter > Scott (not the > actual code, but he r

help with SWITCH

2001-08-17 Thread Yacketta, Ronald
Folks, I have this little bit of code that was recommended by Peter Scott (not the actual code, but he recommended using a SWITCH) if ($test = /($regex)/o) { SWITCH: for ($test){ # I think this is the problem right here, not sure though if ( /Communication/ )

RE: #18 & #24

2001-08-17 Thread Bob Showalter
Whew! I'm glad they finally got that fixed. :-) > -Original Message- > From: Kolene Isbell [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 16, 2001 9:35 AM > To: [EMAIL PROTECTED]; Perl Beginners; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: #18 & #24 > > > Pat: > > We've f

Re: Re: arguments with a module

2001-08-17 Thread Jos I. Boumans
I think what you want is constructor related, not exporter related... I have this covered in an OO tutorial on my site. you would probably find it usefull to read: http://japh.nu/index.cgi?base=tuts both part 1 and 2 deal with the problem you're experiencing. hope this helps, Jos Boumans ---

problem with a Hash of,Hashes of Hashes and MLDBM

2001-08-17 Thread Kiarash
Hi, thanx for considering my problem to read, you know i work for a company,they have a site,and their site has User ID and Password. they offer some links to their members,and they wanna track each user clicks. for example,they have 10 links,they want to know,how many times,each