How to split it?

2001-10-22 Thread basssang
if I split: $line = "1:2:3:4:5"; @aaa = split (/:/ ,$line); I will get: @aaa = (1,2,3,4,5) How if I want to get: @aaa = (":1",":2",":3",":4",":5") how to do it? (":" can be a pattern) TIA, basssang -- To unsubscr

how to match pattern at initial line

2001-10-21 Thread basssang
if I have these lines: --- AAA BBB CCC BBB CCC AAA CCC AAA BBB --- How to matching BBB at line 2 (BBB at the beginning of the line) but not matching line 1 and 3. ' /^BBB/ ' is not work. regards, Bassang -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO