Some Perl Special Variables Some Global Special Variables 10 of 28 : [PREV] [NEXT]

$" ($LIST_SEPARATOR)

  • Like $, except that it applies to list values interpolated into a double-quoted string (or similar interpreted string).
  • Default is a space
  my @list = qw(cat dog mouse);
  {
      local $"  = "+";
      print "@list";
  }

  # will print:
  # cat+dog+mouse

© 2004 Barbie barbie@missbarbell.co.uk Home http://birmingham.pm.org/