in reply to Re^2: Corrupt Data?
in thread Corrupt Data?
The first argument of map is code executed for every other argument of map.
print map uc($_), qw( a b c d ); # Prints ABCD print map { uc($_) } qw( a b c d ); # Same thing
unpack '(A4)*', $val splits the value into as many 4 byte blocks as possible. I would have used "W" instead of "A", though. unpack '(W4)*', $val splits the value into as many 4 character blocks as possible.
@_ is not unamed —its name is @_— and nothing is being stored in it —its contents are being passed to map.
@_ holds the arguments of the current function (convert).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Corrupt Data?
by almut (Canon) on Jul 14, 2008 at 23:27 UTC | |
by ikegami (Patriarch) on Jul 14, 2008 at 23:30 UTC | |
by massa (Hermit) on Jul 15, 2008 at 11:22 UTC | |
|
Re^4: Corrupt Data?
by BrowserUk (Patriarch) on Jul 15, 2008 at 02:02 UTC | |
by almut (Canon) on Jul 15, 2008 at 02:15 UTC | |
by BrowserUk (Patriarch) on Jul 15, 2008 at 09:26 UTC |