Apache needs permission to create afile

2005-02-06 Thread Elliot Holden
I need to know how to give Apache (in OSX Panther) permission to create a file. In other words, in my script I am using the "open" command to create the file. But it doesn't get created. It works from the command line. Here is my example below: open(OUTFILE, ">>", "test.txt") or die "$!"; print

perl modules

2005-02-06 Thread Aurelien Magniez
Hi, I've downloaded perl modules which are packaged in a rpm file. When I want to use these modules with Perl 5.8.5, the compilation of my script fails because the modules are'nt found in @INC. So, I looked at the path installation of these modules and I moved them into the . Now, I have th

RE: reading an integer value from file?

2005-02-06 Thread Charles K. Clarkson
pablo wablo wrote: : I'm trying to parse an avi header and I'm having : problems getting the actual values of the integer data in the : file. : : Here's what I do: : : open(INHANDLE, "tesmovie.avi.mp3") || die("can't open file"); : : my $line = ; Show us an exam

Input a password from STDIN

2005-02-06 Thread Xiaofang Zhou
Anyone can help me in this?. When running $password = ; the password will show on the console windows as user type in. Is it possible for perl to read from keyboard directly, without echo to the console window? Thanks, Xiaofang [EMAIL PROTECTED] -- To unsubscribe, e-m

RE: Input a password from STDIN

2005-02-06 Thread Charles K. Clarkson
Xiaofang Zhou <[EMAIL PROTECTED]> wrote: : Anyone can help me in this?. When running : : $password = ; : : the password will show on the console windows as user : type in. Is it possible for perl to read from keyboard : directly, without echo to the console window? That depends on the console

Re: RE: Input a password from STDIN

2005-02-06 Thread Xiaofang Zhou
I'm using active perl 5.6 on winxp, running perl in a DOS-like command windows. The User interfaces modules on cpan seems not designed for win32 platform. I tought about using TK to pop-up a gui dialog window. But don't know how to leave "MainLoop" and return to my script. Direct calling 'exit' on

Re: Input a password from STDIN

2005-02-06 Thread Randy W. Sims
Xiaofang Zhou wrote: > Anyone can help me in this?. When running > > $password = ; > > the password will show on the console windows as user > type in. Is it possible for perl to read from keyboard > directly, without echo to the console window? > perldoc -q password -- To unsubscribe, e-ma

Re: reading an integer value from file?

2005-02-06 Thread Mark Cohen
Pablo, Try one of the following subsubroutines. In the following example the binary subroutine is called with the first 4 bytes. The key is to understand how to use the unpack function. Regards Mark $value = binary(substr($_record,0,4)); sub ib { # A signed integer value. my

Re: Input a password from STDIN

2005-02-06 Thread Gerard Robin
On Sun, Feb 06, 2005 at 10:33:05PM +0800 Xiaofang Zhou wrote: > Anyone can help me in this?. When running > > $password = ; > > the password will show on the console windows as user > type in. Is it possible for perl to read from keyboard > directly, without echo to the console window? there is

Re: reading an integer value from file?

2005-02-06 Thread John W. Krahn
pablo wablo wrote: I'm trying to parse an avi header and I'm having problems getting the actual values of the integer data in the file. Here's what I do: open(INHANDLE, "tesmovie.avi.mp3") || die("can't open file"); my $line = ; my $datarate = substr($line, 4, 4) - 0; print "$datarate\n"; What I'm

Mail-Internet problem

2005-02-06 Thread Douglas Lentz
Hello friends, I'm trying to get Mark Overmeer's Mail::Internet module to work on my system. Problem: I can't send mail using Mail::Internet's smtpsend method. Details: This is a Red Hat Linux box connecting to the internet over plain old dial-up PPP. I am using my ISP's SMTP server. I know my