Hello JUAN,
Saturday, November 03, 2001, AMORE,JUAN (HP-Roseville,ex1) <[EMAIL PROTECTED]> wrote:
AJHRe> I'm new to creating references.
AJHRe> How do I create a small script that replaces "C" with "D" using a reference
AJHRe> only to the array element location for
AJHRe> "C"?
AJHRe> #!/usr/bin/perl -w
AJHRe> @letters=("A", "B", "C");
something like this?
#!/usr/bin/perl -w
@letters=("A", "B", "C");
sub replace
{
my ($ref)=(@_);
$ref->[2]="D";
}
replace(\@letters);
print @letters;
Best wishes,
Maxim mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]