Sublime Forum

Configuring Sublime Text for Perl

#1

Hi, Team
I am trying to use Sublime Text as the IDE for Perl. I created a custom build for Perl in Sublime Text, and upon pressing ctrl + B a sample “hello, world” code executes.

My problem is this: When I write the below piece of code, the editor isn’t suggesting, for example, GetActiveObject after I type my $word = Win32::OLE->, even though I have called use Win32::OLE;.

use strict;
use 5.16.3;
use Win32::OLE;
use Win32::OLE::Enum;

my $word = Win32::OLE->GetActiveObject(‘Word.Application’) || Win32::OLE->CreateObject(‘Word.Application’) or die ‘Could not open Microsoft Word’;

I am not sure whether my expectation is incorrect; I expected the Sublime Text to suggest every method, every property, and so on.

Thanks,

0 Likes