Consider the follwing:
#!/usr/bin/perl # save as out.pl use strict; use warnings; my $output = "out.pl"; system('dir $output'); print "\n\n--------------\n\n"; system("dir $output");
See Strings in Perl: quoted, interpolated and escaped.
There is no need to call system to chmod a file, see chmod.
In reply to Re: Change permissions after file is created
by marto
in thread Change permissions after file is created
by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |