Hi Monks, I'm writing a perl script to download a file from a url. The download part is ok but I need to change the permission of the file. I used chmod u+x <filename>, but every time I run my script I'm having this error: Bareword "u" not allowed while "strict subs" in use at download.pl line 40. Can you help me with this?</>
Here's my sample code
my $filename = "sample.pdf"; chmod u+x $filename;
In reply to How to use chmod u +x in perl by fearthechris29
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |