Writing to files in perl help!

Discussion in 'OT Technology' started by beaniemak, Oct 30, 2004.

  1. beaniemak

    beaniemak New Member

    Joined:
    Nov 27, 2000
    Messages:
    390
    Likes Received:
    0
    Code:
    open (Writer, ">login");
    print Writer "connect\n$username\n$password\n";
    close (Writer);
    
    system ("cp login input");
    system ("javac", "foodbp.java");
    system ("java -cp .:./pg73jdbc3.jar foodbp < input");
    
    I'd like to keep a copy of login because there are a couple other scripts that need the contents of it. However, after it runs, login is blank, yet input has all the text it should. Does anyone know why login is being left blank?
     
  2. beaniemak

    beaniemak New Member

    Joined:
    Nov 27, 2000
    Messages:
    390
    Likes Received:
    0
    Figured it out guys, sorry! It was some zaniness in the java program I was running.
     

Share This Page