Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Environments extended with embeded Perl: are they for real?

by gmax (Abbot)
on Mar 23, 2003 at 23:11 UTC ( [id://245331]=note: print w/replies, xml ) Need Help??


in reply to Environments extended with embeded Perl: are they for real?

I am currently using Vim's Perl extensions, and it is working just fine.

Check a few practical examples for twisting your text with Perl from inside Vim at Editing features for advanced users under the title Wizardry: editing with Perl.

Just a simple excerpt. You can sort your text using Perl's syntax, getting text from the editor's current buffer and writing back to it:

:perl @lines = sort {$a <=> $b} $curbuf->Get(1 .. 15) :perl $curbuf->Set(1, @lines)

update. I must mention that I re-compiled Vim to get that feature working correctly. Instruction for the task at the same node.

_ _ _ _ (_|| | |(_|>< _|

Replies are listed 'Best First'.
Re: Re: Environments extended with embeded Perl: are they for real?
by stefp (Vicar) on Mar 23, 2003 at 23:17 UTC
    I am not so lucky. I am using vim 6.1 and perl 5.8.0 multithreaded (from Mandrake cooker). Thx for the pointers anyway.

    -- stefp

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-23 11:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found