Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Restoring the magic to the _ filehandle in Perl 5.8.9

by clinton (Priest)
on Jan 27, 2010 at 17:11 UTC ( #819975=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        # set current lang to spanish
        print _('Hello!');
        > íHola!
  2. or download this
            *::_ = sub {
                $Burro::i18n::Current_Lang->maketext( map {$_} @_ );
  3. or download this
         stat 'foo' && -e _ && -r _;
  4. or download this
       print lstat 'bar' && -l _;   # Undefined subroutine &main::_ 
       print "\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://819975]
Approved by johngg
Front-paged by ikegami
[TCLion]: I guess it makes sense but trying to take out key info to make it general was a bit difficult in the tiny window, it just doesnt look right... but I understand

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2017-03-23 18:59 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (294 votes). Check out past polls.