Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: Export/import variables

by diotalevi (Canon)
on Mar 19, 2003 at 21:11 UTC ( [id://244460]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Export/import variables
in thread Export/import variables

package Bio; use strict; use warnings; use vars qw($VERSION %USERS); sub import { my $package = shift; my %args = @_; my $users_file = $args{path}; open USERS, $users_file or die "Cannot open $users_file for readin +g: $!"; my $users_data = do { local $/; <USERS> }; close USERS or die "Cannot close USERS file handle: $!"; # Write to the global variable %USERS = $users_data =~ m{(\S+)\s+(\S+\@\S+)}g; } 1;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-26 06:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found