[prev in list] [next in list] [prev in thread] [next in thread]
List: cgi-list
Subject: [CGI] How to modify the value of a variable.
From: "J.Michael Mason" <jmmason () syncity ! com>
Date: 1998-02-28 11:55:43
[Download RAW message or body]
I'm hoping someone here can help me with this.
$var = "DataDataData#ID"
What I need to do is take the value of $var and
read it from right to left up to the first # character.
Chop it there and create a new variable something like:
$temp = "*#ID"
Any help would be appreciated.
Also, if $other_var ="DataDataData#ID"
Would it match $temp (assuming the actual ID's match)?
Regards,
J.Michael Mason
-----------------------------------------------------------------
To unsubscribe, mailto:majordomo@jann.com with "UNSUBSCRIBE cgi-list"
in the message body.
To contact a person at the CGI list, mailto:owner-cgi-list@jann.com
The CGI Tips & Tricks website (and archive of the list) is located
at http://www.jann.com/Perl/
cgi-list is hosted by Wizards of the Web (http://wizweb.com).
-----------------------------------------------------------------
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic