[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] ARRGH!



>I am just trying to create and write to a file now and this what
>I tried
>
>open(handle, 'look.out');
>print handle 'stuff\n';
>close(handle);
>
>with no success. What am I missing?

A greater-than sign.  Try:
open(handle, '>look.out');

Also, if you want a newline and not a '\n' at the end of 'stuff', try 
double-quotes instead of single.

Cheers!