|
|
| Brian Volk 2005-10-19, 9:55 pm |
| Hi All~
Is there a perldoc that will list the available arguments and there meanings
for perl-one-liners?
I saw this in an earlier email; Subject: Delete a char from a file
Perl -pi -e '/s/%/ /' filename
I'm guessing the -i is for in-place edit and the -e is checking to see if
the file exist... I have no idea what the -p is for but I would like to be
able to look it up. :~)
Thanks!
brian volk
| |
| John W. Krahn 2005-10-19, 9:55 pm |
| Brian Volk wrote:
> Hi All~
Hello,
> Is there a perldoc that will list the available arguments and there meanings
> for perl-one-liners?
perldoc perlrun
> I saw this in an earlier email; Subject: Delete a char from a file
>
> Perl -pi -e '/s/%/ /' filename
What you probably saw was:
perl -pi -e 's/%//g' filename
> I'm guessing the -i is for in-place edit
Yes.
> and the -e is checking to see if the file exist...
No. See "perldoc perlrun".
> I have no idea what the -p is for but I would like to be
> able to look it up. :~)
perldoc perlrun
John
--
use Perl;
program
fulfillment
| |
| Jeff 'japhy' Pinyan 2005-10-19, 9:55 pm |
| On Oct 19, Brian Volk said:
> Is there a perldoc that will list the available arguments and there meanings
> for perl-one-liners?
Yes. To try and figure out what perldoc to look at for a given topic, do:
perldoc perldoc
which will show the names of the documentation sections and a brief
summary of their purpose. You should see 'perlrun' listed as the one
describing the command-line options to perl.
--
Jeff "japhy" Pinyan % How can we ever be the sold short or
RPI Acacia Brother #734 % the cheated, we who for every service
http://www.perlmonks.org/ % have long ago been overpaid?
http://princeton.pm.org/ % -- Meister Eckhart
| |
| Randy W. Sims 2005-10-19, 9:55 pm |
| Jeff 'japhy' Pinyan wrote:
> On Oct 19, Brian Volk said:
>
>
> Yes. To try and figure out what perldoc to look at for a given topic, do:
>
> perldoc perldoc
You mean `perldoc perl` ? ;)
| |
| Jeff 'japhy' Pinyan 2005-10-19, 9:55 pm |
| On Oct 19, Randy W. Sims said:
> Jeff 'japhy' Pinyan wrote:
>
> You mean `perldoc perl` ? ;)
Oy vay. Yes. What a gaffe.
--
Jeff "japhy" Pinyan % How can we ever be the sold short or
RPI Acacia Brother #734 % the cheated, we who for every service
http://www.perlmonks.org/ % have long ago been overpaid?
http://princeton.pm.org/ % -- Meister Eckhart
| |
| Paul Lalli 2005-10-20, 7:55 am |
| Jeff 'japhy' Pinyan wrote:
> On Oct 19, Randy W. Sims said:
>
>
> Oy vay. Yes. What a gaffe.
There is also
perldoc perltoc
Which givest the same listing of all the perldocs as does `perldoc
perl`, but also gives the section headings within each individual
perldoc, to give you a better clue as to what you might find in there.
Paul Lalli
|
|
|
|