codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  help in perl script  mhadidi2002 at 02:26 on Wednesday, June 10, 2009
 


Dear all,

I am a beginner using perl; scripting, so i wish you cna help me...

I have a file containing a data like this:

>CHA 2
#419150.000000
[4639567,4639674] [4825157,4825264] 7196
[4639511,4639565] [4825101,4825155] 8416
#1346.000000
[4612526,4612558] [859583,859615] 1843
[4612489,4612510] [859547,859568] 17296
#1263.000000
[4612623,4612644] [3296095,3296116] 18439
[4612483,4612515] [3296057,3296089] 4517

this data is transfered to an array, so each line in 1 element of this array (@data)

I want a code that extract the first no. in the first square bracket in each line in @arr1(4639567,4639511,... for example).

Thank you in advance :)








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
• C++
• Re: refresh parent after closing pop up window
• Dynamic Insertion
• Date and Time function around the world???
• Significant Factors
• Perl array access
• Re: huffman encoding and decoding in C++...
• Perl One Liner: Replace {(
• Re: html including php, accessing the functions


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009