slurps the __DATA__ section into my scalar $data, but what is perl doing in that do loop?my $data = do { local $/; <DATA> };
what's happenning in there?my $data = do { local $/; # localize RS? <DATA> # evaluate <DATA> in scalar context ? }
In reply to slurping __DATA__ by LanceDeeply
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |