PerlDiscuss - Perl Newsgroups and mailing lists wrote: > HI, > > I am brand new to Perl and I am trying to modify a script that someone > else wrote.
Please don't. That is not the way to learn Perl. Learn Perl first, get very confortable with it, starting with the basics, then try to adapt existing scripts. Program maintenance is one of the most difficult tasks in programming, so it is not a good place to make your entry. > I have this line where primaryntaccount = something like this > domainname\userid > > Token=primaryntaccount:: %ntaccount% = (\\w+).*$ This is not Perl. AFAIK. Without context, it is pretty hard to tell, though. If it is Perl code, then it is very non-standard. > > > I want to pass a different value for primaryntaccount which I am getting > by the following line. > > where $UPN = [EMAIL PROTECTED] > > @array = split/([EMAIL PROTECTED])/, $UPN; > $UPN2 = @array[0]; > Token=$UPN2:: %ntaccount% = (\\w+).*$; > > Like I said I am totally new to perl and I don't even really understand > how the token line really works. The best I can ascertain is that it is > passing something back up to DRA. What is DRA? > > What does this bit do is this simply formatting the data or is it parsing > the variable "(\\w+).*$" ? > > Any help is appreciated. Can you post the script as a whole? Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]