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;}
In reply to loop through file checking for session variable by grashoper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |