-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

The < > syntax is a bit like qw<> from Perl 5. You'll get a List (or
Array, not sure which type exactly from it. So

    <myfile1, myfile2>

is a list with two elements, "myfile1" and "myfile2". If you want to
use a variable, you can just provide it with one or more variables:

    chmod 0o755, $myfile
    chmod 0o755, ($myfile1, $myfile2)

On Sun, 3 Jun 2018 13:08:26 -0700
ToddAndMargo <toddandma...@zoho.com> wrote:

> On 06/03/2018 11:01 AM, Brandon Allbery wrote:
> > Is there something missing in the examples at the link?  
> 
> Well, a bit.  When I see
> 
>      chmod 0o755, <myfile1  myfile2>;
> 
> I think `myfile1` and `myfile2` are "functions", not
> data.
> 
> I instead look for something like
> 
>      chmod 0o755, < $myfile1   $myfile2 >;
> or  chmod 0o755, < "myfile1"  "myfile2" >;
> 
> And to make matter worse, the example does not work:
> 
> $ touch a b c
> $ p6 'chmod 0o777 < a b c >;'
> ===SORRY!=== Error while compiling -e
> Preceding context expects a term, but found infix > instead.
> at -e:1
> ------> chmod 0o777 < a b c >⏏;  
> 
> 
> $ p6 'chmod 0o777 < "a" "b" "c" >;'
> ===SORRY!=== Error while compiling -e
> Two terms in a row
> at -e:1
> ------> chmod 0o777 < "a"⏏ "b" "c" >;  
>      expecting any of:
>          infix
>          infix stopper
>          postfix
>          statement end
>          statement modifier
>          statement modifier loop
> 
> 
> $ p6 'chmod 0o777 < "a", "b", "c" >;'
> ===SORRY!=== Error while compiling -e
> Missing required term after infix
> at -e:1
> ------> chmod 0o777 < "a", "b", "c" >⏏;  
>      expecting any of:
>          prefix
>          term

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE4eL662U9iK2ST2MqN/W6H45XOE8FAlsUTrcACgkQN/W6H45X
OE/ILwf/X7mElQ7bPzRBA3i7Vm4pi3E6/bUpf2SMz5LB3UhfVKHNSV5/fXGE1a/W
9oa5klItWioH5m+NF+3KeOyufxc1tDm+hN5I2iac8xNTkE4bHfna9tOK03xvQXLf
t3x/jMTW1YN0jsvOWJLCi4UgBOqs/1B5Z3HzV6X1XPXjU1qNphYRf8huRtg+lxBb
CQWFQgKljNzvNVqSWlG3J3XTTXdQZ69juW5LQC+a3C7y0/44jvas0eS/C3uGG48y
O7rDG75V6y8ZfWBzFSIiCycH0fOcnYxE64brsPiaP0limVgMyac4YU15ixrEocxK
Q83aFB+yIYVNSlfYl8Llw2ZofOlM9Q==
=SSBB
-----END PGP SIGNATURE-----

Reply via email to