[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] crazy hoops to do something that seems so simple?



>(first off, there has to be an easier way to generate a variable containing
>a-z and z-a,
>

TRY
  $backwards = reverse('a'..'z');
  $forwards = reverse($backwards);
  print "$forwards\n$backwards\n";

OR

  $forwards = reverse(reverse('a'..'z'));

OR

  @forwards = ('a'..'z');
  $forwards = join('',@forwards);


David Seay
http://www.mastercall.com/g-s/




# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org