Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: perl file permissions

by sh1tn (Priest)
on Dec 05, 2007 at 16:36 UTC ( #655126=note: print w/replies, xml ) Need Help??


in reply to perl file permissions

I use the following bash script to automate this task:
#!/bin/bash file=$1 if [ -e $file ] then vim $file else touch $file echo '#!'`which perl` > $file echo '' >> $file echo 'use strict;' >> $file echo 'use warnings;' >> $file echo '' >> $file chmod +x $file vim $file fi


Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://655126]
help
Chatterbox?
[LanX]: oh 9 downvotes ... Nick must be back :)
[marto]: https://www. youtube.com/watch? v=WZnsHvEYEZI

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2018-04-26 10:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?