On Sunday, February 25, 2018 at 11:48 PM, "Uri Guttman" wrote... > >>> Here is line 1085: > >>> foreach my $type qw(dependson blocked) { > >>> my @bug_ids = split(/[\s,]+/, $deps_in{$type}); > >> put parens around the qw(). it used to be allowed as the () in the for > >> loop but not anymore. > > Thanks. > i actually ran into a bug with a change in qw() that may be the cause of > this. it used to be that qw was a runtime thing and was compiled into a > split that returns scalars which were read/write. a perl version changed > qw to be a compile time thing that made a list of read only strings. the > code i was working with assumed the results of the qw were read/write > and crashed when the new version of perl came out. this may also have > been the change you see there. but maybe not. yours is a syntax change > that allowed qw() to be the parens part of for.
Don't forget this is 2007 perl code. So... -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/