in reply to Re: Help with getting the ouput form the script
in thread Help with getting the ouput from the script

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.

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

Replies are listed 'Best First'.
Re^3: Help with getting the ouput form the script
by hippo (Archbishop) on Jun 03, 2013 at 14:26 UTC

    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?