News for hackers. Stuff that matters.
Re:Sigils are an underappreciated programming technology by kqr on Tuesday May 30, 2023 @01:34AM (#36121456)

  @foods = qw(burgers fries shakes);
  $length = @foods;
Not to mention that this refactoring introduces a bug:

  $length = qw(burgers fries shakes);
Because lists and arrays convert to scalars differently. A list is more of a syntactic construct and an array is a data structure. Confused the heck out of me my first few weeks of Perl.

There are no comments on this comment yet.