[TxMt] Perl: Open Module doesn't like require

Andy Armstrong andy at hexten.net
Sat Nov 4 20:51:57 UTC 2006


The 'Open Module' command in the Perl bundle looks for a line like

use ModuleName;

but quite a lot of code uses instead

require ModuleName;

Changing line 9 of the command to

if ($line =~ /^\s*(?:use|require)\s+([^\s;]+)/) {

fixes this.

-- 
Andy Armstrong, hexten.net




More information about the textmate mailing list