Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: file check loop

by 2teez (Vicar)
on Jul 30, 2013 at 17:36 UTC ( #1047082=note: print w/replies, xml ) Need Help??

in reply to Re: file check loop
in thread file check loop

You don't want to initialize your array like so: my @races = undef; because like so, you already have an element in the array. Which is not what you want to do.
You can simply do my @races = (); OR more better my @races; just like toolic posted above.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047082]
[ovedpo15]: consider the following format of strings: some_data-doesn't- matter,value. how I get the value with regex? it should be after the last comma (last string)
[Corion]: Text::CSV_XS for all your CSV file parsing needs. Other than that, what problems do you have with perlre, and capturing everything after the comma? Also, index and substr would also work.
[choroba]: my ($value) = $string =~ /.*,(.*)/

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2018-05-27 08:48 GMT
Find Nodes?
    Voting Booth?