Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: IO::All is sliced bread

by eric256 (Parson)
on Jun 21, 2006 at 17:19 UTC ( [id://556735]=note: print w/replies, xml ) Need Help??


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

Since this is a conrtived example...here is my other contrived example. Not to say IO::All isn't cool, i think many of us are just bigger control freaks and can't stand to guess what the module will do and if it will do the right thing.

use File::Spec; open (MYFILE, '<', File::Spec->catfile('my','dir','my_file.txt')) or d +ie "Can't open $file: $!\n"; open(RFILE, '>', File::Spec->catfile('my','dir','reversed.txt')) or di +e "Can't open $rfile: $!\n"; print RFILE reverse <MYFILE>;; use IO::All; my $file = io->catdir('my','dir','my_file.txt')->backwards; my $rfile = io->catdir('my','dir','reversed.txt'); $file > $rfile;

Now if it was IO::DBD::All....just feed it a daatabase and a file of any format and ti does the right thing....well then i might not have much of a job so lets not go there.


___________
Eric Hodges

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-03-19 02:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found