mohadib_the_nasty has asked for the wisdom of the Perl Monks concerning the following question:
#! /usr/bin/perl -w $file = "/var/spool/mail/mohadib"; open(MAIL, "$file") || die "cant open spool\n"; @array = <MAIL>; close (MAIL); foreach $array (@array){ if($array !~ /[A-Za-z0-9]/){ @num = (1 .. 3); foreach $num (@num){ $current = $new + $num; print "$array[\"$current\"]"; } } $new++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Newbie Question - arrays
by dws (Chancellor) on Jan 13, 2003 at 03:18 UTC | |
by mohadib_the_nasty (Initiate) on Jan 13, 2003 at 03:35 UTC | |
|
Re: Newbie Question - arrays
by pg (Canon) on Jan 13, 2003 at 04:09 UTC | |
|
Re: Newbie Question - arrays
by Enlil (Parson) on Jan 13, 2003 at 03:48 UTC | |
by mohadib_the_nasty (Initiate) on Jan 13, 2003 at 03:59 UTC | |
by graff (Chancellor) on Jan 13, 2003 at 04:36 UTC | |
by mohadib_the_nasty (Initiate) on Jan 13, 2003 at 05:38 UTC | |
by grantm (Parson) on Jan 13, 2003 at 09:31 UTC | |
|
Re: Newbie Question - arrays
by tonkin (Initiate) on Jan 13, 2003 at 07:29 UTC | |
|
Re: Newbie Question - arrays
by jdporter (Paladin) on Jan 13, 2003 at 20:29 UTC |