Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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?
[marto]: the wind woke the kids in the early hours of the morning.
[Corion]: marto: Ow! You got hit by the storm that is bringing warm weather to me ...
[1nickt]: marto Good to hear that was the worst of it for you...
[marto]: 1nickt the worst I'm aware of at the moment :P
LanX .♩..♬ ... Another one bites the Sahara dust ...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-10-17 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (230 votes). Check out past polls.

    Notices?