Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Perl Build System File for sublime text editor

by UVB (Acolyte)
on Nov 01, 2011 at 03:33 UTC ( #935014=perlquestion: print w/replies, xml ) Need Help??

UVB has asked for the wisdom of the Perl Monks concerning the following question:

I am using the sublime text editor. Does anybody have a decent sublime build system file for Perl that they would be willing to share? Any help would be appreciated. Thank you.
  • Comment on Perl Build System File for sublime text editor

Replies are listed 'Best First'.
Re: Perl Build System File for sublime text editor
by UVB (Acolyte) on Jan 16, 2012 at 03:37 UTC
    I ended up doing it myself: Change \packages\Perl\Perl.sublime-build file in the Sublime Text install to the following:
    { "cmd": ["perl", "-w", "$file"], "file_regex": ".* at (.*) line ([0-9]*)", "selector": "source.perl" }
      Works great -- thank you!!
      Tks! I 've changed "-w " to "-c" for syntax only.
      In which file exactly did you do the formatting, and where can I find it? Do you have to perform the changes before the installation of sublime text or is it possible to do it afterwards? Thank you!
        1. Click "Preferences -> Browse Packages"
        2. Navigate to the "Perl" subfolder
        3. Create a file called "Perl.sublime-build" with the following content:
          { "cmd": ["perl", "-w", "$file"], "file_regex": ".* at (.) line ([ +0-9])", "selector": "source.perl" }
        4. Manually set the build system by clicking "Tools -> Build System -> Perl"
        5. You can now run your Perl script by mashing Ctrl+B
        "re-"taken from
Re: Perl Build System File for sublime text editor
by Anonymous Monk on Jan 06, 2018 at 17:26 UTC
    Go to "Tools -> Build System -> New Build System" This will open up a new file. Write the following in the file
    { "cmd": ["perl", "-w", "$file"], "file_regex": ".* at (.*) line ([0-9]*)", "selector": "source.perl" }
    Save the file as "perl.sublime-build" in "~/.config/sublime-text-3/Packages/User" folder

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://935014]
Approved by GrandFather
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2021-04-14 14:08 GMT
Find Nodes?
    Voting Booth?

    No recent polls found