At 7:12 am -0500 21/11/02, Sherm Pendley wrote:
On Thursday, November 21, 2002, at 04:42 AM, John Delacour wrote:
Now why don't I get a bell but when I do ( print "\a" ) or ( print
\007 ) in 10.2.2/Perl5.8.0? It works fine in MacPerl and no
character is "printed" but in OS 10 the only way I've found is:
Works for me, in both Perl 5.6.0 & 5.8.0, on 10.1.5.
Do you have the "mute terminal bell" option checked in the
Terminal.app preferences, by any chance?
No. But the terminal is not involved. I can get a beep if I do
perl -e 'print "\a"'
in the Terminal, but I work as little as possible in Terminal,
running perl scripts mainly in BBEdit and through AppleScript calls.
I see now that
tell app "MacPerl" to Do Script "print qq~\\a~"
gives me a bell, but
tell app "MacPerl" to Do Script "print qq~\\a~" mode batch
will print a character, as will
do shell script "perl -e 'print qq~\\a~'"
print "\abc" run in MacPerl gives a bell and prints "bc"
I guess that's what I'm missing under the new rˇgime.
JD