gcazian has asked for the wisdom of the Perl Monks concerning the following question:
Snippet from the username.xml file:
<xdb><password xmlns='jabber:iq:auth' xdbns='jabber:iq:auth'>password</password>Snippet of code to change the password:
I can't seem to get the code to change the password. What am I doing wrong? Forgive me, I'm a newbie.open(FILE, "$jabuserdir/$username.xml"); while (<FILE> ) { s/xdbns='jabber:iq:auth'>(.*)</$usernewpwd/g ; } close( FILE );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: editing a file with regular expressions
by BrowserUk (Patriarch) on Jan 29, 2004 at 00:20 UTC | |
|
Re: editing a file with regular expressions
by borisz (Canon) on Jan 29, 2004 at 00:17 UTC | |
|
Re: editing a file with regular expressions
by ysth (Canon) on Jan 29, 2004 at 00:19 UTC |