On Fri, 10 Sep 2004 15:01:34 -0400, David Greenberg <[EMAIL PROTECTED]> wrote: > Opps, I missed that. Instead of: > @results = map { my $line = $_; chomp $line; $line =~ s/\s+//g; $line } (@data); > try: > my @newresults = map { my $line = $_; chomp $line; $line =~ s/\s+//g; > shift (@results) . $line } (@data); > @results = @newresults; > > -David >
Ok ... please forgive my n00b-ness, but can you help me understand a couple of things here. This part: shift (@results) . $line Is it the same as: shift @results . $line I'm thinking "no". But I don't know what the difference is. I also don't understand what exactly that shift is doing, but if I understand the difference with the parens maybe It'll start to make more sense to me. --Errin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>