Using array from subroutine

2009-04-05 Thread Thomas H. George
In order to call them from menubuttons I moved my code into subroutines. sub open_file { if ( ! open NEWFILE, "<$file") { die "Could Not Open $file: $!" } else { my @lines = ; $message = "Open File" . $file; } } # End sub open

Re: Using array from subroutine

2009-04-05 Thread John W. Krahn
Thomas H. George wrote: In order to call them from menubuttons I moved my code into subroutines. sub open_file { if ( ! open NEWFILE, "<$file") { die "Could Not Open $file: $!" } else { my @lines = ; my() *creates* a new variable that is only vis