in reply to Code Blocks
open INF, "<$file" or print "\n\tmy message\n" ; "\n\tActual error :: $!\n" ; return 0 ;
OR:open INF, "<$file" or do{ print "\n\tmy message\n", "\n\tActual error :: $!\n" ; return 0 ; }
It will do what you want, if i understood the idea of your dirty, ugly code correctly.open INF, "<$file" or (print("\n\tmy message\n", "\n\tActual error : +: $!\n"), return 0)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Code Blocks
by Ronnie (Scribe) on Jul 27, 2006 at 13:21 UTC | |
by Ieronim (Friar) on Jul 27, 2006 at 16:38 UTC |