Coder's Guild Mailing List

Re: Perl Programming (Solution)

Posted by Frank Hale on 1999-03-01

Okay I figured it out. Here is the solution.

Having 2 arrays I want to copy the first array into a new one so I have
a copy of the first and append some data to each element in the second
array.

@forums = ( "general", "newbies", "links", "apps", "programming",
"experts" );

# Okay here is my second one which is an exact copy of my first one.
@forumFiles = @forums;

# Here is where we append the data to each element in the @forumFiles
array 
foreach $file (@forumFiles)
{
    $file = $file.".dat";
}


-- 
From:      Frank Hale
Email:     frankhale@xxxxxxxx.xxx.xxx   
ICQ:       7205161          
Website:   http://www.franksstuff.com

Microsoft Visual BS service pack 6
 Features: - New FUD technology spreads BS quickly and easily.
       - Increased Crash Technology makes applications crash easier.
       - New vesioning scheme works better with our buggy releases.