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
"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.
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
>
"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
"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. :
"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
>
>
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: