grashoper has asked for the wisdom of the Perl Monks concerning the following question:
xmlfiledata is a subroutine that opens a file first arg is directory second is filename (optional 3rd is subroutine) example session->usrsystem=BAR sitelist.txt=BAR, or some other 3 letter account codemy $sitelist=xmlFileData("Content", "Sitelist.txt"); WHILE <$sitelist>; chomp($line); SWITCH: if ($Session->{'usrSystem'}=~$line){str.=MLX40Tutorials()")last SWIT +CH;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: loop through file checking for session variable
by GrandFather (Saint) on Oct 30, 2007 at 03:12 UTC | |
by grashoper (Monk) on Oct 30, 2007 at 03:34 UTC | |
by GrandFather (Saint) on Oct 30, 2007 at 03:54 UTC | |
by grashoper (Monk) on Oct 30, 2007 at 04:49 UTC | |
by grashoper (Monk) on Oct 30, 2007 at 04:30 UTC |