Hi,
I'm trying to do something really simple, but it just won't work: How can I create an empty file (fe .txt), and close it without writing anything in it?
I've tried this:
open(ORDER, ">$name") or die $!;But then it says:
I've tried a lot of other things, like:
open(ORDER, "+>", "$name")...
Hi,
I'm wondering how I can create a file handle from within a sub routine, that is available in the entire document.
In my routine, there is, fe:
open (MYFILE,"> /test/output.txt");
How can I declare the (empty) scalar/variable in my main scope, so that I can 'fill it' from within my...
Hey,
I keep getting this error with the following code:
#!/usr/bin/perl -w
use strict;
sub mainMenu
{
print "Kies een optie (1-7)\n";
&listenForMenuChoice;
}
sub listenForMenuChoice
{
local($choice);
$choice = <>;
chop $choice;
use Switch;
switch...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.