Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

OT: perl emacs 'strict' and 'warnings'?

by water (Deacon)
on Oct 08, 2004 at 20:33 UTC ( [id://397771]=note: print w/replies, xml ) Need Help??


in reply to From Win to Lin: Perl IDE choices?

water again. I am leaning towards returning to Emacs... does anyone know here if there's a mode that does syntax checking (eg 'strict' and 'warnings' in real time)? I know about cperl for syntax colorization, but, again relfecting back on optiperl, it squawks in real time when I type  $fooo when I should have typed <code $foo</code>, or if I type  gep rather than  grep. Seeing the error at that instant and fixing it right then is a big time saver, vs. seeing the error when syntax checking or running the script. Does anyone know if emacs can do something like this?

Thanks!

Replies are listed 'Best First'.
Re: OT: perl emacs 'strict' and 'warnings'?
by InfiniteLoop (Hermit) on Oct 11, 2004 at 14:29 UTC
    I dont know of such features, but you can check for perl syntax and pod on an event such as after saving (after-save-hook). I have just added such a elisp function here:
    http://perlmonks.org/?node_id=398159
Re: OT: perl emacs 'strict' and 'warnings'?
by vjo (Novice) on Oct 11, 2004 at 14:53 UTC
    > does anyone know here if there's a mode that does syntax 
    > checking (eg 'strict' and 'warnings' in real time)?
    
    Yes. It exists and is called flymake.

    http://flymake.sourceforge.net/

Re: OT: perl emacs 'strict' and 'warnings'?
by patrick.j (Acolyte) on Oct 30, 2010 at 17:41 UTC
    yes: flymake-mode (In the docs there is an example for perl checking if it isn't set up already)

Log In?
Username:
Password:

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

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

    No recent polls found