Thanks for the help. 

This works: perl -pe '$_ = "$ARGV \t $_"' trace.txt  
This doesn't: perl -pe '$_ = "$ARGV[0] \t $_"' trace.txt  

perldoc perlvar says that $ARGV must be used for command-line processors
and in array-context as @ARGV for running scripts.

Thanks, once again.


-----Original Message-----
From: Arul, Rex 
Sent: Wednesday, September 22, 2004 1:27 PM
To: '[EMAIL PROTECTED]'
Cc: [EMAIL PROTECTED]
Subject: RE: Inline Edit -- File name

Well, I did try that with $ARGV[0], but to no avail. Yes, I had posted a
POC. Here is the true code that would not print the file-name. What am I
doing wrong?

perl -pe '$_ = "$ARGV[0] \t $_"' trace.txt

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to