
kapacheperlboob
New User
Aug 25, 2012, 6:09 PM
Post #1 of 3
(977 views)
|
Noob question: user INPUT to change text file input
|
Can't Post
|
|
Hi, I am new at perl, I've been reading and watching online videos, so far I've gotten somewhat okay with perl. I want to write my first script that takes user input and uses that input to update text file. Here's an example. I want users to get asked to change DID and extension to what they want to use "test.call"(the actual program that I use for trixbox-c to make outbound test calls) Channel: Local/DID@internal Context: main Extension: s Priority: 1 Callerid: extension Here's what I got so far $ask ="change DID and name to the number and extension that you will be using: \n"; print "$ask"; $change=<>; if($change =~ /Y/i){ } #$call="/root/test.call" I am stuck at the if statement block part. what should I do there? any help will do
|