Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Text::CSV_XS; Type Method

by snopal (Pilgrim)
on Feb 18, 2010 at 17:11 UTC ( #823982=note: print w/replies, xml ) Need Help??


in reply to Text::CSV_XS; Type Method

substr is certainly a text context. Perhaps that is a constraint that is hard for combine to break.

I'd try something like:

$prod_no = 0 + substr($source,88,8);

And check those results.

Replies are listed 'Best First'.
Re^2: Text::CSV_XS; Type Method
by drodinthe559 (Monk) on Feb 18, 2010 at 17:32 UTC
    That works as long as the field has data. I get the following error:
    Argument " " isn't numeric in abs at Y:\Perl Projects\C +oopers\coopers_chklst_2.pl line 57, <SOURCE> line 12089.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2020-10-29 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (271 votes). Check out past polls.

    Notices?