LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-07-2012, 07:51 AM   #1
AST
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Rep: Reputation: Disabled
How to pass multiple objects into Perl script?


Hi,

Completely new to Perl as of 25 minutes ago.

I have a perl script that is used for reporting data.

Currently i have a line that reads

'&host=host1&alerttype=3&hoststate=2&limit=500'

Id like to have multiple hosts

eg

'&host=host1host2host3host4&alerttype=3&hoststate=2&limit=500'

I have tried seperating with a comma but no joy.

Is this possible please?

Thanks
 
Old 02-07-2012, 08:41 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
There must be a million ways. Depends on how you do do the stuff in general, I'm afraid. See for example this about CGI if that's what you're after (multi-valued parameters) and what you use.

Last edited by b0uncer; 02-07-2012 at 08:42 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print output of a script to screen using Perl/Multiple installation of Perl Modules metallica1973 Linux - General 1 02-17-2011 06:59 PM
count multiple objects in shell script raggmopp1961 Linux - General 1 07-22-2010 09:56 AM
how to pass variables to perl script from php script smohan Programming 17 06-17-2010 09:15 AM
how to pass in a parameter to a perl script new_2_unix Linux - Newbie 2 12-09-2007 01:48 AM


All times are GMT -5. The time now is 12:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration