in reply to Help with getting the ouput from the script

Which part of this task are you stuck on? Can you read the user's input? Can you store it? Can you compare it to your desired inputs? Can you perform a logical branch on the basis of the comparison?

What have you tried?

  • Comment on Re: Help with getting the ouput form the script

Replies are listed 'Best First'.
Re^2: Help with getting the ouput form the script
by freekngeek (Acolyte) on Jun 03, 2013 at 13:46 UTC

    I have a perl script which is parsing some text from some text file and creating a new file in which all the values are in tabulated form. Script is running fine and smooth

    Now, What I want is to interrupt(I dont know if it's a right word) script in terminal, So i can have two options like Yes or No.

    <I am stuck at this part. I don't know how to make my script behaves like this.

      Let's assume therefore that your problem is that you do not know how to perform a read from standard input. Take a look at this:

      my $a = <>;

      Do you know what this does? Are you familiar with the diamond operator?