Re: substr parsing mask

2003-09-29 Thread Jeff 'japhy' Pinyan
On Sep 29, [EMAIL PROTECTED] said: >I got it to work after adding a new var in apache modperl environment. > >This works: > $acct_no = $xgi->param("acct_no"); > print substr($acct_no, 0, 4, "x" x (length($acct_no)-4)); > >This did NOT work: > print substr($xgi->param("acct_no"), length($xgi->param

Re: substr parsing mask

2003-09-29 Thread perl
I got it to work after adding a new var in apache modperl environment. This works: $acct_no = $xgi->param("acct_no"); print substr($acct_no, 0, 4, "x" x (length($acct_no)-4)); This did NOT work: print substr($xgi->param("acct_no"), length($xgi->param("acct_no"))-4,4); Any explanation would be

Re: substr parsing mask

2003-09-27 Thread Jeff 'japhy' Pinyan
On Sep 27, Jeff 'japhy' Pinyan said: >On Sep 26, [EMAIL PROTECTED] said: > >>Does anyone have a short routine for displaying mask on some values and >>displaying the value of the last four? For example, alot of site display >>credit card numbers like 1234 which shows only the last four. >> >>I

Re: substr parsing mask

2003-09-27 Thread Jeff 'japhy' Pinyan
On Sep 26, [EMAIL PROTECTED] said: >Does anyone have a short routine for displaying mask on some values and >displaying the value of the last four? For example, alot of site display >credit card numbers like 1234 which shows only the last four. > >I know how to use the substr but what about re