Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > request some grammar concept from c 2 perl

Reply
Thread Tools

request some grammar concept from c 2 perl

 
 
key9
Guest
Posts: n/a
 
      12-08-2006
Hi all

Just beginner of perl,need some concepts

Q1
How to access enviroment var in perl? eg PATH

Q2
in c we using argc to get application name , How to do that in perl

Q3
in c/cpp we have lib getopt/ boost/program_options ,what about perl?
eg can I have an easy way to do:
../foo.pl -c -max 100 -min 0
?


thank you very much
your key9



 
Reply With Quote
 
 
 
 
anno4000@radom.zrz.tu-berlin.de
Guest
Posts: n/a
 
      12-08-2006
key9 <> wrote in comp.lang.perl.misc:
> Hi all
>
> Just beginner of perl,need some concepts


Instead of answering your questions directly I'll point you to
the relevant documentation available through perldoc.

> Q1
> How to access enviroment var in perl? eg PATH


perldoc perlvar, look for %ENV

> Q2
> in c we using argc to get application name , How to do that in perl


perldoc perlvar, look for $0

> Q3
> in c/cpp we have lib getopt/ boost/program_options ,what about perl?
> eg can I have an easy way to do:
> ./foo.pl -c -max 100 -min 0
> ?


perldoc GetOpt::Long
perldoc GetOpt::Std

Anno
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Re: equiv of perl regexp grammar? Ian Kelly Python 0 09-13-2012 06:54 PM
equiv of perl regexp grammar? Neal Becker Python 0 09-13-2012 11:30 AM
perl module for context grammar? ela Perl Misc 8 10-02-2011 11:37 PM
perl 5 grammar Mike Samuel Perl Misc 16 05-17-2009 07:42 PM
Looking for Perl Grammar Khamis Abuelkomboz Perl Misc 5 05-01-2005 12:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57