in reply to Re: splitting/unpacking a string containing data sepearted by \0
in thread splitting/unpacking a string containing data sepearted by \0

I'm partial to glob, myself. e.g. @files = (glob("*"), glob(".*"));

Update: added missing parentheses.

Update: just for fun, and those who abhor repetition: @files = map glob, qw(* .*);

Update: duff++

Replies are listed 'Best First'.
Re: Re: Re: splitting/unpacking a string containing data sepearted by \0
by duff (Parson) on Feb 13, 2004 at 05:56 UTC
    just for fun, and those who abhor repetition: @files = map glob, qw(* .*);

    What about those of us who are lazy?

    @files = glob "* .*";