<div dir="ltr"><div><div>Following on from our discussion yesterday, here a bit of typical too-early-in-the-morning typing:<br><br>motrak@upde-duncang:~$ repl<br>                                                                                                                                                                                                     $ for (my $x=0;$x<10;$x==){<br>
                                                                                                                                                                                                     > print "$x\n";<br>
                                                                                                                                                                                                     > }<br>Compile error: syntax error at (eval 845) line 5, near "==)"<br>
BEGIN not safe after errors--compilation aborted at (eval 845) line 7.<br>                                                                                                                                                                                                     $ #edit<br>
<br></div>#edit opens an empty file with a temporay name, in this case ./tmp/9FjWRDLe0X.pl<br><br></div>If I re=type the code in the editor and exit, in runs:<br><br><div><div>0<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>
9<br><br></div><div>The code block has been put into the history and can be re-run as a simple command:<br><br> $ for ( my $x = 0; $x < 10; $x++ ) {^J  print "$x\n";^J}<br>0<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>
8<br>9<br><br></div><div>However, it can not be put back into the editor.<br><br></div><div>#edit open an empty document and does not accept a filename as an argument.<br><br></div><div>It re-inforces the view that Devel::REPL is quite good. No more, no less. A definate 7 out of 10.<br>
<br></div><div>All the best.<br>                                                     <br></div></div></div>