in reply to Re: Using perl interactively with VI
in thread Using perl interactively with VI

No -i switch if you call perl as a filter from an editor!

  • Comment on Re: Re: Using perl interactively with VI

Replies are listed 'Best First'.
3Re: Using perl interactively with VI
by jeffa (Bishop) on Mar 15, 2004 at 19:33 UTC
    Then what about:
    #!/usr/bin/perl -pi s/this/that/g;
    I honestly don't know how to call filters from vi ... so i don't know how to test this. But i think this should take care of the problem.

    UPDATE:
    Just figured out how to use filters in vi, that wasn't hard at all! Yes, this definetly takes care of the problem. :)

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)