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: Regular Expressions: Re: [padmahealthsoft] Split doctor id from file name: Edit Log



Zhris
Enthusiast

Aug 26, 2010, 9:58 PM


Views: 2548
Re: [padmahealthsoft] Split doctor id from file name

hey,


Quote

check if particular doctor files are came and allotted that files to particular users.


I'm unable to understand what you meant here. Also I think the doctor id you provided was 2 0's short of the actual doctor id?

In regards to splitting the filename to retrieve the "doctor id", you could simply use the split function:


Code
   
my $filename = 'N 0824-003 908000000 02 237144 .vox';
my ($part1, $part2, $doctorid, $part4, $part5, $extension) = split /\s+/, $filename;
print "$doctorid\n";


Chris


(This post was edited by Zhris on Aug 26, 2010, 10:01 PM)


Edit Log:
Post edited by Zhris (Enthusiast) on Aug 26, 2010, 10:01 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