The whole point of slurp is (possibly lazily in the future) reading
everything. If you want to read by bytes, it's the read method; by lines,
it's get; for extended characters / graphemes, it's readchars. They all
have rather different intents.

On Sun, Oct 7, 2018 at 7:42 PM ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:

> Hi All,
>
> I use `slurp` all the time, so of course, I can't
> make heads or tails out of
>
>       https://docs.perl6.org/routine/slurp
>
> I want to slurp the first 400 characters of
> a file and close the handle.  Am I missing a
> `so many` parameter somewhere?
>
> Many thanks,
> -T
>


-- 
brandon s allbery kf8nh
allber...@gmail.com

Reply via email to