PerlScript - FileSystemObject - Windows Scrpting Host
PerlScript - FileSystemObject - Windows Scrpting Host
am 02.04.2008 22:05:48 von oscar gil
--0-276961901-1207166748=:68967
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hello everybody,
Can anyone tell me why this simple code does not work?
I got this error:
Error: (in cleanup) Can't call method "Writeline" on an undefined value
I suspect something with FileSystemObject but I could not find anything on the web and I have been searching for some days :-((((
...but the same code in java or VBscript works.
Any help will be really well apreciated.
Thanks in advance.
---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
--0-276961901-1207166748=:68967--
Re: PerlScript - FileSystemObject - Windows Scrpting Host
am 02.04.2008 23:55:10 von Jenda Krynicky
From: oscar gil
> Hello everybody,
>
> Can anyone tell me why this simple code does not work?
>
>
>
>
>
> I got this error:
> Error: (in cleanup) Can't call method "Writeline" on an undefined value
>
> I suspect something with FileSystemObject but I could not find anything on the web and I have been searching for some days :-((((
You would only use Scripting.FileSystemObject if you are a strong
masochist.
open my $OUT, '>', "test2.txt" or die "Failed to open: $^E\n";
print $OUT "Hello\n";
just like in normal Perl.
And most likely the problem is permissions. The account undex which
the ASP page runs doesn't have enough permissions to create the file
in the current directory.
Jenda
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: PerlScript - FileSystemObject - Windows Scrpting Host
am 02.04.2008 23:55:10 von Jenda Krynicky
From: oscar gil
> Hello everybody,
>
> Can anyone tell me why this simple code does not work?
>
>
>
>
>
> I got this error:
> Error: (in cleanup) Can't call method "Writeline" on an undefined value
>
> I suspect something with FileSystemObject but I could not find anything on the web and I have been searching for some days :-((((
You would only use Scripting.FileSystemObject if you are a strong
masochist.
open my $OUT, '>', "test2.txt" or die "Failed to open: $^E\n";
print $OUT "Hello\n";
just like in normal Perl.
And most likely the problem is permissions. The account undex which
the ASP page runs doesn't have enough permissions to create the file
in the current directory.
Jenda
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: PerlScript - FileSystemObject - Windows Scrpting Host
am 03.04.2008 02:53:00 von Ken Barker
-----Original Message-----
From: activeperl-bounces@listserv.ActiveState.com
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of Jenda
Krynicky
Sent: Thursday, 3 April 2008 08:55 AM
To: ActivePerl@listserv.ActiveState.com; beginners@perl.org
Subject: Re: PerlScript - FileSystemObject - Windows Scrpting Host
From: oscar gil
> Hello everybody,
>
> Can anyone tell me why this simple code does not work?
>
>
>
>
>
> I got this error:
> Error: (in cleanup) Can't call method "Writeline" on an undefined
> value
>
> I suspect something with FileSystemObject but I could not find
> anything on the web and I have been searching for some days :-((((
You would only use Scripting.FileSystemObject if you are a strong
masochist.
open my $OUT, '>', "test2.txt" or die "Failed to open: $^E\n"; print
$OUT "Hello\n";
just like in normal Perl.
And most likely the problem is permissions. The account undex which the
ASP page runs doesn't have enough permissions to create the file in the
current directory.
Jenda
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz ===== When it comes
to wine, women and song, wizards are allowed to get drunk and croon as
much as they like.
-- Terry Pratchett in Sourcery
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
ForWriting is not defined. You should check the values returned
CreateObject and CreateTextFile.
Cheers,
Ken.
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: PerlScript - FileSystemObject - Windows Scrpting Host
am 03.04.2008 02:53:00 von Ken Barker
-----Original Message-----
From: activeperl-bounces@listserv.ActiveState.com
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of Jenda
Krynicky
Sent: Thursday, 3 April 2008 08:55 AM
To: ActivePerl@listserv.ActiveState.com; beginners@perl.org
Subject: Re: PerlScript - FileSystemObject - Windows Scrpting Host
From: oscar gil
> Hello everybody,
>
> Can anyone tell me why this simple code does not work?
>
>
>
>
>
> I got this error:
> Error: (in cleanup) Can't call method "Writeline" on an undefined
> value
>
> I suspect something with FileSystemObject but I could not find
> anything on the web and I have been searching for some days :-((((
You would only use Scripting.FileSystemObject if you are a strong
masochist.
open my $OUT, '>', "test2.txt" or die "Failed to open: $^E\n"; print
$OUT "Hello\n";
just like in normal Perl.
And most likely the problem is permissions. The account undex which the
ASP page runs doesn't have enough permissions to create the file in the
current directory.
Jenda
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz ===== When it comes
to wine, women and song, wizards are allowed to get drunk and croon as
much as they like.
-- Terry Pratchett in Sourcery
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
ForWriting is not defined. You should check the values returned
CreateObject and CreateTextFile.
Cheers,
Ken.
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs