- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- PERL Script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 04:12 PM
01-21-2003 04:12 PM
How can I receive parameter values in a PERL Script.
Appreciate a very simple script...
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 05:33 PM
01-21-2003 05:33 PM
Re: PERL Script
If you want to print the value of a variable you can use the print $var.
Pls be specific.
Srini.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 05:37 PM
01-21-2003 05:37 PM
Solution#
#
$DataFileName = $ARGV[0];
$searchstr = $ARGV[1];
$valuestr = $ARGV[2];
print "filename is >>".$ARGV[0]."<< searchstr is >>".$ARGV[1]."<<\n";
print "====================\n";
This might be useful also:
http://members.shaw.ca/andrew-johnson/perl/archit/Oct00
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 05:38 PM
01-21-2003 05:38 PM
Re: PERL Script
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0e7fef70e827d711abdc0090277a778c,00.html
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 09:27 PM
01-21-2003 09:27 PM
Re: PERL Script
Many thanks for a very straight and simple example.
For the PERL beginners like me may also want to take a look at this...
http://www.cs.cf.ac.uk/Dave/PERL/perl_caller.html.
Thanks and best regards...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 09:56 PM
01-22-2003 09:56 PM
Re: PERL Script
That link you suggested doesn't seem to work, it returns:
"URL not found
The URL you requested does not exist on the Computer Science server.
Requested address was /Dave/PERL/perl_caller.html. on server www.cs.cf.ac.uk. "
Do you know what it should be ?
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 11:49 PM
01-22-2003 11:49 PM
Re: PERL Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 11:55 PM
01-22-2003 11:55 PM
Re: PERL Script
Sorry about the extra '.' at the end...
http://www.cs.cf.ac.uk/Dave/PERL/perl_caller.html
Thats the way it should be...