Geeks Talk

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.

perl array

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 ? ...

Go Back   Geeks Talk > Web Development > PERL
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

PERL PERL Scripts - Tips, Tricks, Issues, Latest News, PERL Resource and PERL related topics can be discussed in this forum.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-30-2008
Junior Member
 
Join Date: Jul 2008
Location: Canada
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
shrupeete is on a distinguished road
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
Reply With Quote
Sponsored Links
Reply

  Geeks Talk > Web Development > PERL

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 12:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved