Re: using dos commands in perl

2001-08-12 Thread Ken Brakey
Pavan Kumar Hotha wrote: > > Hi all, > > I am very new to perl , I just want to know how can I use dos commands in > perl scripting like > > for ($i=1;$i<=5;$i++) { ^ This is the terminator! $i starts as ONE, the terminator checks "less than or equal to 5" always true and drop

Re: Round function

2001-08-09 Thread Ken Brakey
"Brett W. McCoy" wrote: > > On Thu, 9 Aug 2001, Adam Carson wrote: > > > How is it not correctly rounding? It seems that it would consistently work >(positive numbers only, of course, and that fix was already discussed). Is there >another instance where it would not work? > > Never mind.

Re: Fw: very funny

2001-08-09 Thread Ken Brakey
Roger C Haslock wrote: > > [ Please reply to the group, or else the thread loses its cohesion. RCH] SORRY, but, a lot of people [me included] have the habit of just hitting the 'reply' instead of 'reply all'.:-( Ken > > I trust you are aware of http://www.perl.com/pub/q/FAQs. If these are >

Re: Round function

2001-08-09 Thread Ken Brakey
"Brett W. McCoy" wrote: > > On Thu, 9 Aug 2001, Ken Brakey wrote: > > > > That's BASIC, this is Perl. Perl's int truncates towards 0 (as the FAQ > > > mentioned), so adding .5 isn't going to do anything. > > > > > > $ per

Re: Round function

2001-08-09 Thread Ken Brakey
"Brett W. McCoy" wrote: > > On Thu, 9 Aug 2001, Ken Brakey wrote: > > > Try int(number+.5), it will round up anything more than > > '.5' to the next integer --OR-- truncate less than '.5' > > Learned that twenty years ago, in BASIC. :

Re: Round function

2001-08-08 Thread Ken Brakey
"Brett W. McCoy" wrote: > > On Wed, 8 Aug 2001, Fernando wrote: > > > If there in perl any function that round a number for example: > > > > 13.96 to 14.00 or 14 > > > > I don't want to use any module, just a simple function. Thanks for the help > > I alwys receive. > > perldoc -q round > >

Re: book

2001-07-28 Thread Ken Brakey
You figured that out quick! :-))) Invisible INK? "Frank J. Schmuck" wrote: > > Curtis, > > Is this the book? There doesn't appear to be any code on the cover? > > http://perlcgi-book.com/ > > Thanks > Frank > > -Original Message- > From: Curtis Poe [mailto:[EMAIL PROTECTED]] > Sent: