in reply to remove whitespace from an array

From what you’ve written I doubt that the white space is in the array. It is probably being added when you print the contents. What happens if you print it out with the following
print ‘[‘ . join(‘][‘, @array) .”]\n”;

Replies are listed 'Best First'.
Re^2: remove whitespace from an array
by blazar (Canon) on Aug 03, 2005 at 13:16 UTC
    Huh?!? At first sight those quotes didn't look quite right to me, so I tried to download code and indeed this is what I got when opening with my editor:
    print ~^Q[~^Q . join(~^Q][~^Q, @array) .~^T]\n~^T;
    I suppose they're HTML entities. The actual code you wanted to show is probably:
    print '[' . join('][', @array) ."]\n";
      good catch! I'm an appalling speller and have gotten into the habit of typing posts into word first to ensure they are coherent. Stupidly I also typed my code in there and picked up Word's "smart" quotes.
Re^2: remove whitespace from an array
by Anonymous Monk on Aug 03, 2005 at 12:56 UTC
    the use of $" appears to have done the job, thanks for your help. $" is yet another new feature to me Thanks
      And where is $" mentioned it the node you're replying to? It is mentioned in other replies, e.g. gellyfish's or my own. Not that I'm upset because I wanted to be thanked personally, only I think one should pay attention to attributions otherwise some confusion may arise...