Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Fetching a number

by cbro (Pilgrim)
on Jun 02, 2003 at 19:19 UTC ( #262464=note: print w/replies, xml ) Need Help??


in reply to Fetching a number

If your lines are always going to be 5 fields long...seperated by commas:
my ($s1, $s2, $s3, $pname, $index) = split(/,/, $line);
Update:
Or if the line looks exactly like
('AA', 'B','2','ProjectId','148')"> Unique Information Here (Index)
my ($before, $after) = split(/>/, $line); my ($s1,$s2,$s3,$pname,$index) = split (/,/, $before); and then just trim off the ',), and " characters from $index.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://262464]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2017-02-22 05:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (324 votes). Check out past polls.