Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on perl array within the PERL forums, part of the Web Development category; How do I use array to the file name i am passing on command prompt matches my aray value, if so i wanna get the name which file matches ? ...
|
|||||||
| PERL PERL Scripts - Tips, Tricks, Issues, Latest News, PERL Resource and PERL related topics can be discussed in this forum. |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
perl array
How do I use array to the file name i am passing on command prompt matches my aray value, if so i wanna get the name which file matches ?
$variable_passed = $ARGV[0]; $FilePath = "E:/shru/CBCL/"; $FileName = $variable_passed; $FullName = "$FilePath$FileName"; @File =(ASSN,ARAD,CUPD) foreach $val (@File){ if(@File[] eq $fileName){ $file =Currentdate.$val;} something si wrong with logic i guess |
| Sponsored Links |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PERL Language | r3108 | PERL | 2 | 04-17-2009 07:08 AM |
| New with perl | shrupeete | PERL | 3 | 07-30-2008 04:40 PM |
| static array or dynamic array? | rpgubba | C and C++ | 6 | 12-22-2007 04:03 AM |
| about PERL... | psuresh1982 | PERL | 5 | 09-04-2007 11:04 PM |
| Getting a list of ipaddress from the array using perl | anushya | Scripting | 1 | 02-10-2007 02:42 AM |