CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
syntax issue

 



samirbole
New User

Sep 17, 2008, 6:47 AM

Post #1 of 2 (559 views)
syntax issue Can't Post

Hi

i am trying to execute this statemtn in a perl file but it gives an syntax issue. any help on this will be appreciated as i have tried all combinations but somehow it doesnt work -

system "gsar -s" { " -r"" -o d:\\TicketingSystemScripts\\data\\active_group_uuids.txt"



the gsar is a utility which searches for a something (u specify in -s) and replaces it with the text u give in -r


travs69
Novice

Sep 17, 2008, 9:03 PM

Post #2 of 2 (544 views)
Re: [samirbole] syntax issue [In reply to] Can't Post

You should look into doing this all in perl.. as text manipulation in perl is easy.

You might look at using qx instead of system. With qx you can something besides the double quotes

qx~gsar -s" { " -r"" -o d:\\TicketingSystemScripts\\data\\active_group_uuids.txt~;

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives