open(X,"< test"); undef $/; while() { print "hello" } #### $ARGV[0]="test"; $^I=""; undef $/; while(<>) { print "hello" }