Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: die not exiting Application

by Anonymous Monk
on Apr 16, 2008 at 06:59 UTC ( [id://680741]=note: print w/replies, xml ) Need Help??


in reply to die not exiting Application

Not possible
sub push_report { my $idx = shift; $file= "/tmp/test123"; open(IN, $file) || die "Couldn't open `$file'"; } __END__ Global symbol "$file" requires explicit package name at - line 4. Global symbol "$file" requires explicit package name at - line 5. Global symbol "$file" requires explicit package name at - line 5. Execution of - aborted due to compilation errors.

Replies are listed 'Best First'.
Re^2: die not exiting Application
by andreas1234567 (Vicar) on Apr 16, 2008 at 07:33 UTC
    Not possible
    It is possible indeed if strict is not used.
    $ perl -v This is perl, v5.10.0 built for i686-linux [...] $ perl sub push_report { my $idx = shift; $file= "/tmp/test123"; open(IN, $file) || die "Couldn't open `$file'"; } __END__ $
    --
    When you earnestly believe you can compensate for a lack of skill by doubling your efforts, there's no end to what you can't do. [1]
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://680741]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-03-19 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found