Gossamer Forum
Home : General : Perl Programming :

how do i give a file name a Handle so i can open that file in another perl script?

Quote Reply
how do i give a file name a Handle so i can open that file in another perl script?
how would i go about giving a file (or script) a handle so i can open that file in another perl program...all i want is to open (or run the file) in another perl "program"...i bought Perl for Dummies, and it kind of explains it...i tried this:

Code:
$password_script = 'Name+password.txt'
open(INFILE,$password_script);
print "$password_script";


but that didnt work...all that happend when i ran it was a blank line and then thats it...the name of the program i ran it in is not Name+password.txt also, i put INFILE as the handle b/c thats what it says in the Perl for Dummies book....any help is appriciated Smile
Subject Author Views Date
Thread how do i give a file name a Handle so i can open that file in another perl script? skateboarder83 7620 Feb 19, 2003, 5:46 PM
Post Re: [skateboarder83] how do i give a file name a Handle so i can open that file in another perl script?
Andy 7318 Feb 20, 2003, 1:54 AM
Thread Re: [skateboarder83] how do i give a file name a Handle so i can open that file in another perl script?
Paul 7382 Feb 20, 2003, 2:18 AM
Thread Re: [Paul] how do i give a file name a Handle so i can open that file in another perl script?
skateboarder83 7364 Feb 20, 2003, 8:00 AM
Thread Re: [skateboarder83] how do i give a file name a Handle so i can open that file in another perl script?
Paul 7375 Feb 20, 2003, 8:15 AM
Thread Re: [Paul] how do i give a file name a Handle so i can open that file in another perl script?
skateboarder83 7295 Feb 20, 2003, 2:19 PM
Thread Re: [skateboarder83] how do i give a file name a Handle so i can open that file in another perl script?
Paul 7314 Feb 20, 2003, 2:22 PM
Thread Re: [Paul] how do i give a file name a Handle so i can open that file in another perl script?
skateboarder83 7278 Feb 20, 2003, 2:32 PM
Thread Re: [skateboarder83] how do i give a file name a Handle so i can open that file in another perl script?
Paul 7286 Feb 20, 2003, 4:11 PM
Thread Re: [Paul] how do i give a file name a Handle so i can open that file in another perl script?
skateboarder83 7301 Feb 20, 2003, 4:25 PM
Thread Re: [skateboarder83] how do i give a file name a Handle so i can open that file in another perl script?
wysardry 7292 Feb 20, 2003, 7:15 PM
Post Re: [wysardry] how do i give a file name a Handle so i can open that file in another perl script?
skateboarder83 7246 Feb 21, 2003, 6:27 PM