Re: Breaking out of foreach loop

2001-09-02 Thread baby lakshmi
Hi Chris, Use loop breaks such as last, next, goto etc eg @arr=qw(1 3 4 2 4 5); foreach $number(@arr) { last if($number == 2); print "$number"; } HTH Regards Babylakshmi M _ Get your FREE download of MSN Explorer at http://

Re: Some Extremely Clueless Questions!

2001-09-02 Thread baby lakshmi
Hello Leonard, If u r goin to use notepad as the editor just use path c:\perl\bin if u want to use the dos editor use the following command. path c:\windows\command;c:\perl\bin; HTW Regards Babylakshmi M >From: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Some Extremely Clueless Questions!

Re: Where are the printf function formatting options / rules?

2001-09-02 Thread Randal L. Schwartz
> "Nathan" == Nathan Smith <[EMAIL PROTECTED]> writes: Nathan> I am working on the 3rd practice excercise in chapter 6 of O'Reilly's Nathan> 'Learning Perl'. Good for you! Nathan> The excercise calls for me to use the printf function to Nathan> print formatted text. I have been unable to

Re: Where are the printf function formatting options / rules? (fwd)

2001-09-02 Thread Pradeep Reddy
Hi Nathan, Your message delivered to right box. You can access manpages just by typing " man perl " on the command line. Then you will see some 80 odd man pages. Now you can go to whatever manpage you want. eg. for printf function you can go to perlfunctions man page.

Re: Where are the printf function formatting options / rules?

2001-09-02 Thread Michael Fowler
On Sun, Sep 02, 2001 at 04:31:52AM -0500, Nathan Smith wrote: > I have been unable to find a comprehensive list of formatting options for > use with this function. Does anyone have a link to one? >From the command-line: perldoc -f sprintf or http://www.perldoc.com/perl5.6/pod/func/spr

Re: Where are the printf function formatting options / rules?

2001-09-02 Thread Me
> print formatted text. I have been unable to find a comprehensive list of > formatting options for use with this function. Does anyone have a link to > one? > Also, how do I access the perl manpages from the command line. perldoc -f sprintf perldoc perl hth -- To unsubscribe, e-mail: [EM

Where are the printf function formatting options / rules?

2001-09-02 Thread Nathan Smith
First of all, this is my first email to the list, so I apologize if I have mailed to the wrong address. I am working on the 3rd practice excercise in chapter 6 of O'Reilly's 'Learning Perl'. The excercise calls for me to use the printf function to print formatted text. I have been unable to f

Re: Reading backwards

2001-09-02 Thread Dave Arnold
In message <000501c13230$50f00210$[EMAIL PROTECTED]> "Louis-Philippe Dextraze" <[EMAIL PROTECTED]> wrote: [snip] > > > open FICMSG, "<$logfile" or print "problem opening log file."; > > $i=0; > while(!(eof FICMSG)) > { > $msg[$i] = ; > $_ = $msg[$i]; > if ($i < 40) >