Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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 my_file

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

Comment on Re: Re: help me please
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-07-04 06:59 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (58 votes), past polls