Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Variable Removal From End of String

by Eureka_sg (Monk)
on May 01, 2001 at 11:18 UTC ( [id://76904]=note: print w/replies, xml ) Need Help??


in reply to Variable Removal From End of String

Assuming that each variable is a string containing no commas, you could do this:

@string = split(',',$string); $newstring = join(',',@string[0..$#string-20]);

I'm assuming that $string contains all the variables concatenate together as in:

 $string = "$a,$b,$c,....."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://76904]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-28 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found