CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [BillKSmith] Trying to print all the lines in a file with a .c extension in it: Edit Log



iphone
User

Aug 25, 2010, 5:16 PM


Views: 1841
Re: [BillKSmith] Trying to print all the lines in a file with a .c extension in it

Hi Bill,

In the above code.The following line seems to failing for the below input.

Code
 
(my $VU_name) = /\s(VU\w+)/xms;



Code
INPUT:- 
.\msm\apps_proc\drivers\boot\ince_cache_mmu.s;//depot/asic/msmshared/apps_proc/drivers/boot/2_0/ince_cache_mmu.s - MSMSHARED_1024_SAPP_TOOL.02.00.35.01 : 2
.\msm\build\msm\tool_debug.cmm;//depot/asic/main/build/cmm/tool_debug.cmm - VU_ROLE_TOOL_SMS_VERSION_MS.00.01.11 : 2



DESIRED OUTPUT:-
MSMSHARED_1024_SAPP_TOOL
VU_ROLE_TOOL_SMS_VERSION_MS


The following seems to be working but I am wondering if there is a better way


Code
( my $VU_name ) = $line =~ /\-\s(\w+)/xms;



(This post was edited by iphone on Aug 25, 2010, 6:32 PM)


Edit Log:
Post edited by iphone (User) on Aug 25, 2010, 6:32 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives