How can I import scalars, arrays, etc. from external perl and text files? This is what I have in index.pl:
#!/usr/local/bin/perl -wT use strict; use CGI qw/ :standard /; print header ( 'text/html' ); open(TEXT,"<fried.txt") or die ("error: fried.txt failed\n"); while(<TEXT>) { print; } close(TEXT) or die("error: fried.txt failed\n"); print "$name chicken"; And this is what I have in fried.txt: my $name = "chicken"; So why doesn't it work? And also, when appending a file how can I set it to overwrite when it reaches a certain number of lines and then continue appending. (so the external text file doesn't get any larger than xx lines at any time) Thank you, Kyle -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]