I want to set the LIST_SEPARATOR in perl, but all I get is this warning:
Name 'main::LIST_SEPARATOR' used only once: possible typo at ldapflip.pl line 7.
Here is my program:
#!/usr/bin/perl -w @vals; push @vals, 'a'; push @vals, 'b'; $LIST_SEPARATOR='|'; print '@vals\n';
I am sure I am missing something obvious, but I don’t see it.
Thanks
perlvar is your friend:
$LIST_SEPARATORis only avaliable if youuse English;If you don’t want touse English;in all your programs, use$"instead. Same variable, just with a more terse name.