Open Source Development Tutorials | Newsletter Signup | About Us
Search  

Go Back   Open Source Tutorials Forum > Programming Languages > Perl Programming
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-01-2007, 05:08 AM
SmallWonder SmallWonder is offline
Junior Member
 
Join Date: Mar 2007
Posts: 3 SmallWonder is on a distinguished road
Unhappy How to pass variable no of arguments in a perl script

hello friends

I am new to perl programming.

I have to write a perl script that will take variable no of arguments and perform
accordingly. I have no idea how to handle it.

script can take arguments as follows:

myscript.pl -p
myscript.pl -l
myscript.pl -v
myscript.pl -p -l
myscript.pl -p -l -v
myscript.pl -p -l -v filename


in all these cases script will perform according to the arguments passed to it.

Please Help me.

Thanks in Advance

Manish
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT -5. The time now is 11:05 PM.


Powered by: vBulletin Version 3.0.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright 2004 - 2006 GrindingGears.com. All Rights Reserved.