Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Use of Typeglob

by Transient (Hermit)
on Aug 09, 2005 at 14:00 UTC ( [id://482217]=note: print w/replies, xml ) Need Help??


in reply to Use of Typeglob

#!/usr/bin/perl -w use strict; local *FILE; open( FILE, ">log.txt" ) or die "Unable to open log!\n$!\n"; sub print_log { my $fh = shift; my $message = shift; print $fh $message; } &print_log( *FILE, "Hello!\n" ); print FILE "All done!\n"; close FILE or die "Unable to properly close log!\n$!\n";
This is just an example way to use it. I personally don't use them much, but it has come in handy, especially with formats.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://482217]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found