Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Help with getting the ouput form the script

by freekngeek (Acolyte)
on Jun 03, 2013 at 13:46 UTC ( #1036758=note: print w/ replies, xml ) Need Help??


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
Re^3: Help with getting the ouput form the script
by hippo (Deacon) 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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-07-30 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls