ANNOUNCE: Inline::WSC V0.01

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. inline frames
      Does the newest Dreamweaver come with the inline frame exstension, or do you still have to download it?
    2. 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 ...
    3. ANNOUNCE: Inline::Java 0.44 released
      Hi all, I've just uploaded it to CPAN. ====================================================================== INTRODUCTION: Inline::Java...
    4. [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
    5. 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...
  3. #2

    Default Re: ANNOUNCE: Inline::WSC V0.01


    "jdrago_999" <jdrago.999@gmail.com> wrote in message
    news:1146064944.676955.262480@v46g2000cwv.googlegr oups.com...
    > 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!
    >
    I've never messed with VBScript before, though now that you've provided an
    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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139