Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Create and edit new scripts

by wazoox (Prior)
on Apr 25, 2006 at 19:07 UTC ( [id://545625]=note: print w/replies, xml ) Need Help??


in reply to Re: Create and edit new scripts
in thread Create and edit new scripts

I use nedit too and a very similar macro (bind to ctrl+shift+P :) However may I suggest that you'd better use
use warnings;
rather than
#!/usr/bin/perl -w
which has the undesirable side-effect to enable warnings in modules you use, and some really can't stand it (CGI.pm for instance).
BTW here's my macro, which uses "which" to determine the path to perl :
set_language_mode( "Perl" ) myperl=shell_command( "which perl" , "" ) insert_string("#!" myperl "\n\nuse strict;\nuse warnings;\n") set_cursor_pos(100)

Replies are listed 'Best First'.
Re^3: Create and edit new scripts
by arkturuz (Curate) on Apr 26, 2006 at 07:47 UTC
    I have the same binding :-)

    Thanx for the suggestion!
    I use '-w' because I want all the warnings in most of the programs I write. Some of them are CGI apps, and I like them to run clearly.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found