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
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:
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