Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: help me please

by mirod (Canon)
on Apr 12, 2002 at 06:23 UTC ( #158503=note: print w/replies, xml ) Need Help??


in reply to Re: help me please
in thread help me please

That would actually be the @ARGV array.

#!/usr/bin/perl -w use strict; my $filename= shift @ARGV; ....

As BUU mentionned <> works automagically: you can call the following script with perl test.pl my_file

#!/usr/bin/perl -w use strict; while( <>) { # reads from my_file ... }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://158503]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2018-06-20 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (116 votes). Check out past polls.

    Notices?