Ronnie has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w # use strict ; # sub toytown { my $file = 'xxrcblocktest.pl' ; my $msg = "Unable to open File $file :: $!\n" ; open INF, "<$file" or print "\n\tmy message\n" ; print "\n\tActual error :: $!\n" ; return 0 ; print "\n\tU shouldn't c this msg!!!!!!!\n" ; return 1 ; } # my $script = "xxrcblocktest" ; # print "\n\t\t<***** Script $script S T A R T S\n" ; &toytown or die "\n\tError :: $!\n" ; print "\n\t\t<***** Script $script E N D S\n" ;
my message Error :: No such file or directory
Am i just asking a dumb question that you can instantly answer or can't this be done? Thanks in anticipation,<***** Script xxrcblocktest S T A R T S Error ::
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Code Blocks
by davorg (Chancellor) on Jul 27, 2006 at 11:17 UTC | |
|
Re: Code Blocks
by GrandFather (Saint) on Jul 27, 2006 at 11:28 UTC | |
by Ronnie (Scribe) on Jul 27, 2006 at 13:11 UTC | |
by GrandFather (Saint) on Jul 27, 2006 at 19:53 UTC | |
|
Re: Code Blocks
by wfsp (Abbot) on Jul 27, 2006 at 11:38 UTC | |
|
Re: Code Blocks
by Ieronim (Friar) on Jul 27, 2006 at 11:30 UTC | |
by Ronnie (Scribe) on Jul 27, 2006 at 13:21 UTC | |
by Ieronim (Friar) on Jul 27, 2006 at 16:38 UTC |