http://www.perlmonks.org?node_id=1186018


in reply to oneliner: autorun script when I save it in the editor

Do you still get all errors in an extra pane of your editor such that you can click and jump on them?

> Sometimes you get spoiled by IDE's that have F5 to save and run what you have scripted so far... 

Spoiled? Shouldn't that be standard?

update

Sorry I'm no vi user and not sure what I'm missing here. ..

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re: oneliner: autorun script when I save it in the editor

Replies are listed 'Best First'.
Re^2: oneliner: autorun script when I save it in the editor
by FreeBeerReekingMonk (Deacon) on Mar 27, 2017 at 20:16 UTC
    Well, I was relegated to AIX systems through putty... and not many rights to change the system. The X worked, so you could run an editor but the delay in speed was frustrating, so commandline was better (changes of 1 byte instead of updates of pixel areas). Now, you could work locally, in say, notepad (or word, but notepad is better), then paste it in the xterm, dos2unix it (remove ^M) and run it... that was also tested by me, and a not so good idea.

    If you have an IDE (codeblocks, padre, notepad++, code, sublime) you have so many possibilities... but I'm sure they can not save remotely. I had to work like this: Linux laptop (with nice IDE's) -> Windows VM (with nice IDE's) -> Citrix VPN -> remotedesktop -> putty (or notepad/wordpad) -> aix-server

    So the first time, you program locally, sure grep -p (grep a paragraph) should work on Linux... ehrm... nope, there are ugly -A and -B's... and the perl on AIX is ancient (and no internet -> no CPAN...)

    On another note: Here is my padre on my debian system (and the reason I code in Notepad++ /Wine):

    fbrm@debian:~$ padre 09:56:22 PM: Warning: Cannot set locale to language "English (U.K.)". 09:56:22 PM: Error: locale 'en_GB' cannot be set. DBD::SQLite::db do failed: Safety level may not be changed inside a tr +ansaction at (eval 1905) line 37. Perl exited with active threads: 1 running and unjoined 0 finished and unjoined 0 running and detached
      I'm not sure if I understand everything but emacs can do both

      • safe remotely (via tramp node)
      • be used via ssh in an xterm/putty ( -nw )

      and it has a decent vim emulation (evil mode)

      See [EMACS] "Emacs as Perl IDE" - Abstract for YAPC::EU 2016 (slides, video , discussion)

      I don't know much about modern emacs binaries for AIX usable without root rights. (Though your remarks about ancient Perl there is irritating me)

      Concerning IDEs YMMV, as usual. :)

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

      PS I did the same talk for London Perl Workshop, but I have problems locating the video.

        Perl 5.6.0 on AIX 5.1
        Perl 5.8.2 on AIX 5.2 / 5.3 and 6.1

        Being stuck on 5.8, but also needing to make portable code for the few 5.6 makes you not use modern perl-isms... you get used to it.

        Also corelist shows v5.8.2 as being released in 2003-11-05 So... yeah...