What are i am doing wrong?
You're typing "||" when you should be using "or"
Common Perl Pitfalls / perltrap , "or die" versus "|| die", and two more To || or not to or and why., Perl Idioms Explained - && and || "Short Circuit" operators, || die or or die :)
In reply to Re: problems with truncate function (perloperator precedence or ||)
by Anonymous Monk
in thread problems with truncate function
by david2008
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |