For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > April 2006 > Simple File IO syntax









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Simple File IO syntax
Eggroll822

2006-04-27, 3:30 pm

open(filehandle, file)

so I have open(OUT, ">>Router1")

but now I want to have the file name to be able change from a form. The name is dropdownbox.

I have tried:

open(OUT, >>param("dropdownbox"))
open(OUT, ">>", param("dropdownbox"))
open(OUT, ">>param("dropdownbox")")

i tried assiging a variable to this string:

my $filename = ">>" . param("dropdownbox")
open(OUT, $filename)

my $filename = param("dropdownbox")
open(OUT, ">>$filename")


NONE of these work please help me out.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com