Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. TheDauntless

    Creating file doesnt work

    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")...
  2. TheDauntless

    create file handle from within sub in main scope

    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...
  3. TheDauntless

    Global symbols requires explicit package name

    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...

Part and Inventory Search

Back
Top