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

Re^3: if variants

by ihb (Deacon)
on Oct 21, 2004 at 14:37 UTC ( #401180=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (X) { ... } else { ... }
    
  2. or download this
    if (X) { ... } if (not X) { ... }
    
  3. or download this
    unless (X) { ... } else { ... }
    if (not X) { ... } if (not not X) { ... }
    
  4. or download this
    print ... unless $quiet; # I want to print.
    exit if $done;           # I might want to exit here.
    exit unless $stay;       # I want to exit here, but apparently
                             # something is holding me back.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://401180]
help
Chatterbox?
[ELISHEVA]: perldoc - of course
[erix]: hm, where's tux when you need him?
[ELISHEVA]: what's curiouser is that the underlying Text::CSV_XS appears to be BOM-friendly
[afoken]: DBD::CSV has a csv_class attribute. You could subclass Text::CSV_XS to handle BOMs, e.g. through File::BOM.
[ELISHEVA]: Text::CSV_XS already can handle boms - see its detect_bom flag
[ELISHEVA]: but it seems that the DBD::CSV layer on top of it doesn't
[afoken]: Also: All other attributes that start with csv_ and are not described above will be passed to Text::CSV_XS (without the csv_ prefix).
[Discipulus]: what about a good 'ol SOPW?
[erix]: Giro d'Italia won by Dumoulin (peccato Nibali)
[ELISHEVA]: csv_detect_bom doesn't work either

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2017-05-28 20:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?