Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 09-12-2006, 01:29 AM   #1 (permalink)
 
Newb Techie

Join Date: Apr 2005

Posts: 5

dominicanpapi82

Default n00b CGI question

Sorry for the n00b cgi question. I have a hash, with key bodybgcolor pointing to string like "#FF9966". I need to be able to remove the number sign and turn it to "FF9966". Can someone show me how to do that?

Sorry!!

EDIT: I meant I have something like "#FF9966", and I need to print "FF9966" without the number sign. I have tried and tried, and just can't find a command that will delete the first character of a string.
dominicanpapi82 is offline  
Old 09-12-2006, 01:56 PM   #2 (permalink)
 
Newb Techie

Join Date: Apr 2005

Posts: 5

dominicanpapi82

Default

got the answer. $str =~ s/\#//g;
dominicanpapi82 is offline  
 
Closed Thread

Thread Tools
Display Modes

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 On