in reply to Opening external files with arguements
FWIW:
Can be used e.g. like thus:#!/usr/bin/perl use strict; use warnings; my $file=shift or die "Usage: $0 <file>"; open my $fh, $file or die $!; print scalar <$fh>; __END__
(But then this is precisely the reason why I prefer the three args form of open() - there are situations in which you may want to do exactly the above, though!)$ ./foo.pl 'ls|' 449133.pl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Opening external files with arguements
by void_Anthony() (Acolyte) on Apr 28, 2005 at 15:42 UTC | |
by blazar (Canon) on Apr 28, 2005 at 15:52 UTC | |
|
Re^2: Opening external files with arguements
by void_Anthony() (Acolyte) on Apr 28, 2005 at 15:36 UTC | |
by blazar (Canon) on Apr 28, 2005 at 15:40 UTC |