P
paul.hopgood
I need help solving a subroutine error in my Pearl script.
Here is the error I'm getting:
binmode() on closed filehandle SAVE at /recording.pl line 12.
Undefined subroutine &main:aram called at /recording.pl line 13.
Below is my script:
#!/usr/bin/perl -w
use strict;
$|++;
my $pathToRecordings="http://www.deathnotify.com/recordings";
my $newRecording = "test.wav";
open (SAVE, "> $pathToRecordings/recordings");
binmode(SAVE);
while (read(param("voiceMessage"),$newRecording,1024))
{ print SAVE $newRecording; }
close(SAVE);
Any suggestions would be most appreciated.
Thanks!
-Paul
Here is the error I'm getting:
binmode() on closed filehandle SAVE at /recording.pl line 12.
Undefined subroutine &main:aram called at /recording.pl line 13.
Below is my script:
#!/usr/bin/perl -w
use strict;
$|++;
my $pathToRecordings="http://www.deathnotify.com/recordings";
my $newRecording = "test.wav";
open (SAVE, "> $pathToRecordings/recordings");
binmode(SAVE);
while (read(param("voiceMessage"),$newRecording,1024))
{ print SAVE $newRecording; }
close(SAVE);
Any suggestions would be most appreciated.
Thanks!
-Paul