Bug#438367: Illegal division by zero on bogus match

2007-08-16 Thread Loïc Minier
Package: perl
Version: 5.8.8-7
Severity: minor

Hi,

 While writing some Perl, I stumbled on an invalid syntax trigerring an
 illegal division by zero in Perl:
perl -e 'm/.*//g;'

 I don't know whether these bugs are a concern for Perl, but I'm
 reporting this and letting you close it if it's not.

Bye,

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages perl depends on:
ii  libc6 2.6.1-1GNU C Library: Shared libraries
ii  libdb4.4  4.4.20-8.1 Berkeley v4.4 Database Libraries [
ii  libgdbm3  1.8.3-3GNU dbm database routines (runtime
ii  perl-base 5.8.8-7The Pathologically Eclectic Rubbis
ii  perl-modules  5.8.8-7Core Perl modules

Versions of packages perl recommends:
ii  perl-doc  5.8.8-7Perl documentation

-- no debconf information

-- 
Loïc Minier



Bug#438367: Illegal division by zero on bogus match

2007-08-16 Thread Loïc Minier
On Thu, Aug 16, 2007, Florian Weimer wrote:
 This is not illegal syntax, but parses as:
   m/.*/ / g

 Oh ok; thanks for checking; I'll try perl -w next time!

-- 
Loïc Minier