Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: This looks like whitespace in my CSV but doesn't seem to be

by ghenry (Vicar)
on Sep 30, 2012 at 08:27 UTC ( #996478=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [
      "My Company",
    ...
      "ghenry\@ghenry.co.uk",
      "\xC2\xA1.00",
    ]
    
  2. or download this
    $VAR1 = [
              'My Company',
    ...
              'ghenry@ghenry.co.uk',
              ' 1.00'
            ];
    
  3. or download this
            next unless $fields[4];
            print Dumper \@fields;
            $fields[4] =~ s/\s+//g;
            print Dumper \@fields;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996478]
help
Chatterbox?
[1nickt]: choroba no kidding! The muscle memory alone makes it insignificant. I suppose the addition of param checking is nice. But if you are using MOo anyway you are using Type::Tiny, and you can easily use T::T for params in regular methods.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-11-24 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (349 votes). Check out past polls.

    Notices?