When I got the 10th segmentation fault message i saw that a '$' sign was missing...
Here is the example:
@array = ("foo", "bar"); $foo, bar) = @array;
This one cause segmentation fault.
PS: I'm sorry for the previous one - just a habbit to use 'my'.
dmql++

Replies are listed 'Best First'.
(MeowChow) Re: Yet another perl bug
by MeowChow (Vicar) on Jun 07, 2002 at 10:29 UTC
    Yes, this is the same bug described here.

    update: Are you sure that second "my" is supposed to be there?

       MeowChow                                   
                   s aamecha.s a..a\u$&owag.print
      You are right .. the second my is not supposed to be there. The problem i disocovered was without my. Thanks, dmql++
Re: Yet another perl bug
by broquaint (Abbot) on Jun 07, 2002 at 10:30 UTC
    Which version of perl are you running an what platform are you running it on (the output of perl -V would be handy)? On my local machine I get the following error message when running the code
    Can't declare constant item in "my" at - line 3, near ") =" Execution of - aborted due to compilation errors.
    This is on perl, v5.6.1 built for i686-linux-ld.
    HTH

    _________
    broquaint

      The second my is not supposed to be there. The problem i disocovered was without my. dmql++
Re: Yet another perl bug (the right one)
by Aristotle (Chancellor) on Jun 08, 2002 at 16:14 UTC
    Reduced minimum test case: (foo, bar) = (); ____________
    Makeshifts last the longest.