Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Starting a New Script

by stevieb (Canon)
on Sep 16, 2016 at 18:55 UTC ( [id://1171957]=note: print w/replies, xml ) Need Help??


in reply to Re: Starting a New Script
in thread Starting a New Script

Yes, exactly that. I usually start with this: #!/usr/bin/perl
use v5.12; use warnings;

As do I, but for a few years now, I've left out the shebang line and use a call to perl instead. Whether I'm using an IDE (intelliJ IDEA with Vim plugin) or just Vim, I have a macro in my .vimrc that inserts it for me:

iab _perl use warnings;<CR>use strict;<CR>

Any time I'm writing a Perl file, I just go into Insert Mode, and type _perl, and it injects:

use warnings; use strict;

...of course, I have a couple of others, but that's the one I use most often.

As far as usefulness of the OPs project, I'd have to see it, but I doubt I'd be inclined to use it to be honest, for reasons yourself (afoken) and Your Mother have stated.

...and LOL at "the snake lovers"... I code in Python because I'm FORCED to, damnit! ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1171957]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found