© 2005 A.P. Lawrence
Next
Previous
Return to Start Page
If "foobar" does not exist, this script will exit without printing "foobar open"
#!/usr/bin/perl my $file="foobar"; open FILE, "$file" || die "Can't open: $! \n"; print "$file open";
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
/Tests/Perl/q0026.html copyright Tony Lawrence All Rights Reserved
| Views for this page | ||||
|---|---|---|---|---|
| Today | This Week | This Month | This Year | Overall |
| 2 | 2 | 2 | 158 | 578 |