in reply to Re: how to copy files with spaces in name
in thread how to copy files with spaces in name

You were right on the money. I wasn't getting the value in $grpfile I was expecting and I was jumping to conclusions. Thanks. I must say I'm impressed by you monks. The helpfulness and consideration given to beginers like me is fantastic. Thanks again everymonk. My beginning Perl book also says not to interpolate single variables and that other programmers will laugh at you behind your back (direct quote) :). I see that it is unnecessary now but are there any more sinister consequences?
  • Comment on Re^2: how to copy files with spaces in name

Replies are listed 'Best First'.
Re^3: how to copy files with spaces in name
by shmem (Chancellor) on Mar 06, 2009 at 13:06 UTC

    Thanks for the kudos ;-)
    Interpolation stringifies. Sinister consequences come to bite you if you get the habit and do so with references:

    use strict; my $arrayref = [ qw(a b c) ]; my %hash; $hash{abc} = $arrayref; # ok print $hash{abc}->[2],"\n"; # prints c $hash{abc} = "$arrayref"; # oops, reference converted to a string print $hash{abc}->[2], "\n"; # barfs __END__ c Can't use string ("ARRAY(0x9f43c28)") as an ARRAY ref while "strict re +fs" in use at - line 5.