Re: umask

2007-10-28 Thread Tom Phoenix
On 10/27/07, sam <[EMAIL PROTECTED]> wrote: > print "What Lesson are you on? "; > chop($lesson = ); Although there's nothing really "wrong" wrong with that code, the use of chop() instead of chomp() is antiquated. Are you reading a book printed more than ten years ago? Maybe even a book about Per

Re: umask

2007-10-27 Thread Gunnar Hjalmarsson
sam wrote: umask 0022; while ($exercises > 0) { open EXERCISE, ">exercise" .$lesson ."_" .$exercises .".pl"; The problem I'm having is that the permissions on the files being created are 644 and not 755. Then change them using the chmod() function. -- Gunnar Hjalmarsson Email: http:

Re: umask

2007-10-27 Thread Matthew Whipple
sam wrote: > Hello everyone! This is my first time posting anywhere about perl, so > be gentle. Let me start off with my script: > > #!/usr/local/bin/perl > #Author: Sam Ganim 10/26/07 > > print "What Lesson are you on? "; > chop($lesson = ); > > print "How many exercises are there? "; > chop($exer