Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^2: IO::All is sliced bread

by Jaap (Curate)
on Jun 21, 2006 at 12:44 UTC ( #556640=note: print w/replies, xml ) Need Help??

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..."

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://556640]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2021-09-16 19:56 GMT
Find Nodes?
    Voting Booth?

    No recent polls found