[Chicago-talk] perl shell in activeperl

Andy_Bach at wiwb.uscourts.gov Andy_Bach at wiwb.uscourts.gov
Thu Nov 13 17:25:24 PST 2008


Dunno if this helps but the DBI::Shell docs say:

The configuration file (~/.dbish_config by default, overridden by
$DBISH_CONFIG) is eval'd as perl code and should return a hash ref
containing the configuration items.
...
Since the config file can contain arbitrary perl code, it can do anything
which can be done in perl. One rather useful hack is to call binmode to set
the encoding for standard input and output.
(sample config file)
binmode STDIN,  ":utf8";
binmode STDOUT, ":utf8";

This config file first sets the :utf8 layer for input and output to match
the terminal (if you don't use UTF-8, you could use :encoding() here)
-------------------
Andy Bach
Systems Mangler
Internet: andy_bach at wiwb.uscourts.gov
Voice: (608) 261-5738 Fax: 264-5932

Character is built upon the debris of despair
Emerson



More information about the Chicago-talk mailing list