Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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.


Comment on Re: Fetching a number
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2014-09-01 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (13 votes), past polls