RE: a division warning

2007-08-27 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: lists user [mailto:[EMAIL PROTECTED] > Sent: Sunday, August 26, 2007 20:01 > To: beginners perl > Subject: a division warning > > I run a perl command below, > > perl -Mstrict -Mwarnings -e 'eval {my $x=3;my > $y=$x-3;$x/$y};print "hello"' > Useless use of d

Re: a division warning

2007-08-26 Thread Chas Owens
On 8/26/07, lists user <[EMAIL PROTECTED]> wrote: > I run a perl command below, > > perl -Mstrict -Mwarnings -e 'eval {my $x=3;my $y=$x-3;$x/$y};print "hello"' > Useless use of division (/) in void context at -e line 1. > hello > > I'm confused about the first warning.What's it?thanks. Let's break