http://qs321.pair.com?node_id=180288


in reply to Re: Simple file to array
in thread Simple file to array

Oh, um...would having the @ in the email address cause a problem, or does it assume single quotes? Or, will I have to put single quotes around the email addresses in the outside file?

Replies are listed 'Best First'.
Re: Re: Re: Simple file to array
by Foncé (Scribe) on Jul 08, 2002 at 19:40 UTC
    One more thing--would this snippet work, or will it not chomp like that?:
    open( FH, 'addys.txt' ) or die "Couldn't open file: $!"; chomp (my @email_addys = <FH>); close( FH );