freelanceprogrammers.org Forum Index » Perl

nope


View user's profile Post To page top
rpmtech Posted: Fri Jul 09, 1999 12:30 am


Joined: 07 Jul 1999

Posts: 6
nope
No<br><br>open (f,"&gt;$i");<br><br>doesn`t work it makes a file called
$i<br>and I want a file named what $i is equal to.
Reply with quote
Send private message
View user's profile Post To page top
Shetan11 Posted: Fri Jul 09, 1999 1:17 am


Joined: 07 Jul 1999

Posts: 4
nope
Try<br>| open(f, `&gt; ` . $i);
Reply with quote
Send private message
View user's profile Post To page top
rpmtech Posted: Fri Jul 09, 1999 7:45 am


Joined: 07 Jul 1999

Posts: 6
nope
It said:<br><br>CGI ERROR:<br><br>Insecure dependency in open while running with
-T switch<br><br>Mean anything to you?
Reply with quote
Send private message
View user's profile Post To page top
Shetan11 Posted: Fri Jul 09, 1999 8:40 pm


Joined: 07 Jul 1999

Posts: 4
nope
When you had code which read<br>| open(f, "&gt; $i");<br>were you using
double-quotes or single-quotes?<br><br>I think it might be easier to debug your
code if you simply posted it.
Reply with quote
Send private message
View user's profile Post To page top
rpmtech Posted: Sat Jul 10, 1999 7:51 am


Joined: 07 Jul 1999

Posts: 6
nope
I`ve tried both.<br><br>Here is the screwed
around file so far after what<br>you have
said:<br><br>($file,$text)=split(/:::/,$ENV{QUERY_STRING});<br>open
(f,`&gt;`.$file);<br>print f $text;<br>print
"Content-Type text/html

";<br>print "&lt;html&gt;";<br>print
"&lt;head&gt;";<br>print "&lt;title&gt;Saved
File!&lt;/title&gt;";<br>print "&lt;body&gt;";<br>print "Saved file:
$file&lt;br&gt;";<br>print "&lt;/body&gt;";<br>print
"&lt;/html&gt;";<br><br>Thanks,
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help