in reply to Re: Switching Modules as Necessary
in thread Switching Modules as Necessary
Well, now I'm confused... I found that CSV_XS wasn't installed, couldn't install it, so tried CSV, but never went near PP. I can only assume that PP was already installed. Or perhaps CSV installs CSV_PP by default? CSV_PP doesn't appear to be a core module - at least it's not on my linux box or my Win XP machine.
That aside, I'm still a little puzzled. I could presumably have a situation where I've got both CSV_XS and CSV_PP installed, but my script would now fail due to lack of the CSV wrapper? (which makes it seem like the wrapper could be more trouble than it's worth)
Edit to add: It looks like Text::CSV_PP is included when you install Text::CSV, so that makes sense... However, this still means I want to run my own test for CSV_XS, otherwise my script will fail when CSV_XS is there if CSV is not installed... Have I got that right?
Tom Melly, pm (at) cursingmaggot (stop) co (stop) ukmap{$a=1-$_/10;map{$d=$a;$e=$b=$_/20-2;map{($d,$e)=(2*$d*$e+$a,$e**2 -$d**2+$b);$c=$d**2+$e**2>4?$d=8:_}1..50;print$c}0..59;print$/}0..20
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Switching Modules as Necessary
by Eily (Monsignor) on Dec 08, 2014 at 15:51 UTC |