reg exp

2002-02-10 Thread Stuart Clark
Hi Group, Thanks for the help on the last question. Here is another i am having troubles with. Its a regular expression question. I have left out the rest of the script (which is working fine) I am trying to convert a file with numbers like these 54.35 435.23 1.98 57 to this 5435 00043523

Reading Multiple lies

2002-02-10 Thread Raj Mohan
Hi All, Is that anybody can help me to find a solution for the blow:- I have a file like this:- Input File:- In this I need to read (store into a string) multiple lines from: "" Pls. help me out. Raj.

Re: Perl trainer requests beginner help

2002-02-10 Thread Michael R. Wolf
[EMAIL PROTECTED] (Michael R. Wolf) writes: > I'd like a few volunteers to take a test that I've put > together for an "Introduction to Perl" class that I teach. > If you are a beginner or recent "graduate" of an intro > course and have a few minutes, would you time yourself > taking this test an

Re: is false self-evident? [was Re: Perl trainer requests beginner help]

2002-02-10 Thread Michael R. Wolf
[EMAIL PROTECTED] (Andrea Holstein) writes: > In article <[EMAIL PROTECTED]> wrote "John W. Krahn" <[EMAIL PROTECTED]>: [...] > > "00" is TRUE > > "0" is FALSE > > It's perhaps not so important for a beginners course, > but important to know. > > Last week, I wasted half an hour for understand

Re: is false self-evident? [was Re: Perl trainer requests beginner help]

2002-02-10 Thread Michael R. Wolf
[EMAIL PROTECTED] (John W. Krahn) writes: > "Michael R. Wolf" wrote: > > > > [EMAIL PROTECTED] (John W. Krahn) writes: > > > > > > Are you sure there are only three? :-) > > > > > > $ perl -le' > > > print qq(undef is FALSE) unless undef; > > > print qq("" is FALSE)unless ""; > > > print q

Re: reg exp

2002-02-10 Thread Zhe Hong
Try this. $somestring =~ /^\d{14}$/; # matches 0123456789123 but not 10123456789123 The ^ character matches the beginning of the string and the $ character matches the end of the string. > Hi all, > I am trying to match a 14 digit number > When i use this regular expression i match a 14 digit

Re: reg exp

2002-02-10 Thread Jeff 'japhy' Pinyan
On Feb 11, Stuart Clark said: >I am trying to match a 14 digit number When i use this regular >expression i match a 14 digit number and any number over 14 digits. > >$somestring = ~ '/d{14}'; First of all, I doubt that's what you used. If it is, it's sorely broken. $somestring =~ /\d{14}/;

Re: reg exp

2002-02-10 Thread Dave Benware
Stuart Clark wrote: > > Hi all, > I am trying to match a 14 digit number > When i use this regular expression i match a 14 digit number and any number > over 14 digits. > > $somestring = ~ '/d{14}'; > > I have tried these combinations with no avail. > > $somestring =~ '/d{14,14}'; > $somestrin

reg exp

2002-02-10 Thread Stuart Clark
Hi all, I am trying to match a 14 digit number When i use this regular expression i match a 14 digit number and any number over 14 digits. $somestring = ~ '/d{14}'; I have tried these combinations with no avail. $somestring =~ '/d{14,14}'; $somestring =~ '[0-9]{14,14}'; $somestring =~ '[0-9]{14

Re: if (advisetobeginner == interesting && thankyou) ;)

2002-02-10 Thread RunningBarrels
Hi all, Just wanted to thank everyone for their opinons on the subject. They were very interesting. As I mentioned, at the college I am attending we are using Java to teach the basics - and I can completely see and understand how having Perl being loosely typed may be confusing for a beginne

RE: Waning : Opinion! [was RE: Complete Beginner Looking for Advise!]

2002-02-10 Thread John
I think this is totally on topic, probably something that novices should be aware of and old hacks should remember from time to time. I realize that my comments upset many people who are probably more invested in Perl than I am. I should have mentioned in one of my earlier posts, if you want to s

Re: Complete Beginner Looking for Advise!

2002-02-10 Thread Chris Zampese
I have read through all of the messages on this subject, very interesting. I am new to perl and at the University that I went to they used C++ as the base for teaching programming. I thought that I would put in my 2 cents worth as a different perspective. I think that C++ gave me alot of grou

Re: Waning : Opinion! [was RE: Complete Beginner Looking for Advise!]

2002-02-10 Thread Leon
I am a very new beginner and perl is my first programming language which I learnt as a hobby. I started on perl because many people says that perl is easier to learn than other languages such as c or c++. In deciding which languages to choose, of which what I actually wanted, was to learn a langu

Hashes of hashes..

2002-02-10 Thread Lorne Easton
Hi all, Another simple one, I hope. I have data like this. Computername:Description:Failed Pings At present I am putting this data into seperate arrays and using an index to get it out in order. Not an extremely efficient way to do this and I will need to add more fields later and the like. I

RE: Waning : Opinion! [was RE: Complete Beginner Looking for Advise!]

2002-02-10 Thread John
It didn't call any routines written in other languages? And what about writing an OS? -Original Message- From: Tanton Gibbs [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 10, 2002 14:45 To: John; [EMAIL PROTECTED] Subject: Re: Waning : Opinion! [was RE: Complete Beginner Looking for A

Re: Waning : Opinion! [was RE: Complete Beginner Looking for Advise!]

2002-02-10 Thread Tanton Gibbs
I don't want to be a part of this thread, nor language wars in general...however I had to respond to this because it is interesting: >Most degrees in CS/CIS require that you write a simple >compiler. If you >don't learn pointers and memory management, how are >you going to write a >compiler, in

Waning : Opinion! [was RE: Complete Beginner Looking for Advise!]

2002-02-10 Thread John
Maybe I should unsubscribe and disable this account before I hit send, but I have to defend what I wrote. I certainly never expected to be cursed at for posting an opinion response with justification to a beginners list! I never suggested C++ (I agree, it's not a good OO paradigm - probably one

Re: Password Generator

2002-02-10 Thread Elaine -HFB- Ashton
Mike [[EMAIL PROTECTED]] quoth: *>IS there a perl password generator out there? CPAN has a scripts section http://cpan.valueclick.com/scripts/admin/generate.random.passwords e. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: modules install

2002-02-10 Thread Elaine -HFB- Ashton
Eric R. Jones [[EMAIL PROTECTED]] quoth: *>I had problem installing mods and getting them noticed. Since you didn't mention anything at all about the problem, I'll suggest you read the FAQ at http://www.cpan.org/misc/cpan-faq.html e. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Complete Beginner Looking for Advise!

2002-02-10 Thread Dave Benware
> There are a few Perl tutors around who might have a different > perspective, but from my point of view, turn on strictures and warnings, > exercise a little self control and Perl can allow you to produce clear, > concise, extensible and maintainable code. What more could a beginner > want? I

Re: Complete Beginner Looking for Advise!

2002-02-10 Thread Paul Johnson
On Sun, Feb 10, 2002 at 10:09:55AM -0800, John wrote: Warning: Potential flame bait ahead, probably from John and from me. Please don't take things the wrong way. Let's ensure that any followups remain civil and technically correct. > Don't get me wrong, I think Perl is great and has it's plac

RE: Complete Beginner Looking for Advise!

2002-02-10 Thread Jenda Krynicky
From: "John" <[EMAIL PROTECTED]> > Don't get me wrong, I think Perl is great and has it's place, and I > know I'm no authority, but I don't consider Perl a good language for > new CIS/CS students for a number of reasons including: I agree with the conclusion, but not with all t

RE: Complete Beginner Looking for Advise!

2002-02-10 Thread John
Don't get me wrong, I think Perl is great and has it's place, and I know I'm no authority, but I don't consider Perl a good language for new CIS/CS students for a number of reasons including: It's technically a scripting language, not a programming language. It's "object-oriented" system is an af

Re: checking updated copy of file on remote ftp

2002-02-10 Thread Jenda Krynicky
From: "Student of Perl" <[EMAIL PROTECTED]> > i am coding a Perl script that downloads > updated copies of files from a ftp site ; > For the first time it will download all the > files. And for every next execution of this > script it will check the local copies of > the files w

Re: file question

2002-02-10 Thread Jenda Krynicky
From: "Chris Zampese" <[EMAIL PROTECTED]> > Hi everyone, > I thought that the folowing code should save the data to the > file, and then when it was run again it should save the new data > on a newline in the same file. It saved the data once, but it > will n

Re: array question

2002-02-10 Thread Zhe Hong
The length (number of elements) of an array is returned when an array is called under a scalar context. @array = (1,2,3); $size = @array; # $size gets 3, number of elements in array print scalar @array; # prints the number 3 Hope this helps! Zhe - Original Message - From: "Chris Zampes

array question

2002-02-10 Thread Chris Zampese
Hi all, Just wondering if someone could direct me in the right direction... I am trying to find the number of elements in an array?? any clues gratefully accepted. thanks as always, Chris.

Fork / Sendmail

2002-02-10 Thread Zhe Hong
Hi everyone. I'm having some problems with my script, hope you guys can help me out! I have a script that reads in email addresses from a file and for each email address, it will open up sendmail and pipe data into it. I'm using the following code fragment to send mail. open (MAIL, "|/usr/sbin/