My assumption would be that the above regex would always prove false due to the input always being something like '999\n'. I know there is probably a good explanation of this and it has to do with how perl treats scalars...hopefully your wisdom will provide me with needed insight into the workings of this mysterious language. Thanks, Jasonwhile(($num=<stdin>)!~/^999$/){ ... }
In reply to String Newline Question by insensate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |