Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Using the DATA file handle for ARGV

by aaron_baugher (Curate)
on Nov 13, 2013 at 17:57 UTC ( #1062423=note: print w/replies, xml ) Need Help??


in reply to Re: Using the DATA file handle for ARGV
in thread Using the DATA file handle for ARGV

The point of this is to replace *ARGV with *DATA so you can use the <> operator to read from the DATA filehandle instead of files named on the command line. So your input line should be:

my $timestamp = <>;

Aaron B.
Available for small or large Perl jobs and *nix system administration; see my home node.

Replies are listed 'Best First'.
Re^3: Using the DATA file handle for ARGV
by GotToBTru (Prior) on Nov 13, 2013 at 22:44 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2021-04-17 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?