Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Inverse of 'chop @array'

Reply
Thread Tools

Inverse of 'chop @array'

 
 
gusmeister
Guest
Posts: n/a
 
      03-06-2004
'chop @array' removes the last character for each element in an array. If I
want to do the inverse and append a character to each element, how would I
do that (without using a 'foreach' loop)?


 
Reply With Quote
 
 
 
 
Jürgen Exner
Guest
Posts: n/a
 
      03-06-2004
"gusmeister" <gusmeister_NOSPAM_@sympatico.ca> wrote in message
news:ho92c.10521$. ..
> 'chop @array' removes the last character for each element in an array. If

I
> want to do the inverse and append a character to each element, how would I
> do that (without using a 'foreach' loop)?


You could use map instead, but that would just hide the loop inside of it's
own logic.

jue


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frame-relay map and inverse-arp allangiganson@yahoo.com Cisco 7 04-03-2009 06:06 PM
Query about tan inverse function jahaya@gmail.com VHDL 1 07-17-2005 01:27 PM
Frame-Relay Inverse ARP problem jmarkotic Cisco 7 01-09-2004 11:48 AM
Re: CEP vs Inverse Multiplexing Andre Beck Cisco 0 11-21-2003 05:27 PM
CEF vs MLPPP vs Inverse Multiplex SysAdmin Cisco 1 11-20-2003 01:51 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57