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

Re: Perl: how to insert words at the end of each line and open the file?

by Laurent_R (Abbot)
on Oct 31, 2013 at 18:20 UTC ( #1060618=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (@arr2 = <CF>){
    
    foreach $line (@arr2) {
    
  2. or download this
    my @arr2 = <CF>;
    foreach $line (@arr2) {
    # ...
    
  3. or download this
    while (my $line = <CF>) {
    # ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1060618]
help
Chatterbox?
[1nickt]: pryrt yes, I see. There is no way to differentiate without forcing to a string and all sort of weird stuff. It is enough. User 42 can get creative if s/he wishes.
[chacham]: i sent him a private message expressing my displeasure.
[1nickt]: chacham It was worse than 2-1 ! almost 4-1 !
[jdporter]: Dang. No good example of how to use IPC::Run's run() in its simplest mode?
[LanX]: him or her! ;)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (15)
As of 2017-05-24 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?