Ask a Question related to PERL Modules, Design and Development.
-
jdrago_999 #1
ANNOUNCE: Inline::WSC V0.01
Inline::WSC allows Perl to call JavaScript and VBScript methods,
passing parameters and retrieving return values.
Inline::WSC is Win32-only.
Inline::WSC is available for download on CPAN now.
Example:
use Inline::WSC VBScript => <<'EOF';
Function Hello( ByVal Name )
Hello = "Hello there, " & Name & "!"
End Function
EOF
print Hello( "Fred" );
# Hello there, Fred!
Enjoy!
jdrago_999 Guest
-
inline frames
Does the newest Dreamweaver come with the inline frame exstension, or do you still have to download it? -
ANNOUNCE: Inline::Java 0.46 released!
Get it from CPAN. Inline::Java version 0.46 is a minor upgrade that includes: + Fixed Natives.xs to work with ExtUtils::ParseXS Patrick ... -
ANNOUNCE: Inline::Java 0.44 released
Hi all, I've just uploaded it to CPAN. ====================================================================== INTRODUCTION: Inline::Java... -
[PHP-DEV] [PATCH] inline -> static inline
On Fri, 15 Aug 2003, Jason Greene wrote: Thanks, I have applied the patch. The CVS reorg did not affect karma assignment. - Sascha -
Need Inline Action Help
Can someone please post a simple example of how an inline action works ? Use the database name : Sample.fp5 Layout : Main Fields : Name, E-Mail... -
Sisyphus #2
Re: ANNOUNCE: Inline::WSC V0.01
"jdrago_999" <jdrago.999@gmail.com> wrote in message
news:1146064944.676955.262480@v46g2000cwv.googlegr oups.com...I've never messed with VBScript before, though now that you've provided an> Inline::WSC allows Perl to call JavaScript and VBScript methods,
> passing parameters and retrieving return values.
>
> Inline::WSC is Win32-only.
>
> Inline::WSC is available for download on CPAN now.
>
> Example:
>
> use Inline::WSC VBScript => <<'EOF';
>
> Function Hello( ByVal Name )
> Hello = "Hello there, " & Name & "!"
> End Function
>
> EOF
>
> print Hello( "Fred" );
> # Hello there, Fred!
>
Inline of it, I might just meddle with it from time to time :-)
One problem is that 'C:\windows\temp' is not guaranteed to exist, or be
writable by the user. (It doesn't exist on my Windows 2000 box - and my
initial 'nmake test' failed because of that reason - $ofh did not get
opened.) If you want to write the '.wsc' file to a temporary folder then I
think the best way is to:
use File::Spec;
my $WSC_DIR = File::Spec->tmpdir;
And I think you should still test the opening of $ofh for success (and die
if it failed):
open my $ofh, '>', $filename or die "Can't open $filename for writing: $!";
With the only other Inline modules that I've used (namely Inline::C and
Inline::CPP), the files that get created by the build process are built in
the ./_Inline directory. My first thought was that the '.wsc' file should
also be written in the ./_Inline directory instead of File::Spec->tmpdir. I
don't know that there's any hard and fast rule about this, however, and if
you were to do it that way then obviously you have to give the module the
capability of creating ./_Inline if that folder doesn't already exist.
I notice that you've started the Makefile.PL with:
use 5.008006;
That's probably a bit limiting, isn't it ? I would think that 'use 5.008;'
would be more in order .... or perhaps even 'use 5.006;' ??
Cheers,
Rob
Sisyphus Guest
-
jdrago_999 #3
Re: ANNOUNCE: Inline::WSC V0.01
Thanks for the feedback -
Good idea about the tempdir - I'll apply a patch and re-release.
jdrago_999 Guest



Reply With Quote

