in reply to Re: IO::All is sliced bread
in thread IO::All is sliced bread

I thought this example:
use IO::All; io->catdir('my','dir','my_file.txt')->backwards > io->catdir('my','dir','reversed.txt');
was wrong until i read the IO::All documentation and found out that the ">" operator is overloaded by IO::All. You might write it more suggestively by saying:
io->catdir('my','dir','my_file.txt')->backwards > io->catdir('my','dir +','reversed.txt');

Replies are listed 'Best First'.
Re^3: IO::All is sliced bread
by DrWhy (Chaplain) on Jun 21, 2006 at 15:56 UTC
    I dunno -- it got you to read about IO::All, didn't it ;)

    Actually, I wrote it that way on purpose because I didn't like the way the line was wrapped by PM when it was all on one line.


    "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."