Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Using the DATA file handle for ARGV

by aaron_baugher (Curate)
on Nov 13, 2013 at 17:57 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1062423]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-24 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found