Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: s/// + tr/// when perl -ni -e on semi-colons in one liners echoed to files

by Don Coyote (Pilgrim)
on Nov 18, 2012 at 12:47 UTC ( #1004403=note: print w/replies, xml ) Need Help??


in reply to Re: s/// + tr/// when perl -ni -e on semi-colons in one liners echoed to files
in thread s/// + tr/// when perl -ni -e on semi-colons in one liners echoed to files

ok, thanks for the quick reply. It seems I was assuming -i edits 'in place'. And -n / -p only controlled if STDOUT was printed to or not.(i think it was SED).

Just trying to analyse more complex stuff while tripping over the 'simple' stuff...

  • Comment on Re^2: s/// + tr/// when perl -ni -e on semi-colons in one liners echoed to files

Replies are listed 'Best First'.
Re^3: s/// + tr/// when perl -ni -e on semi-colons in one liners echoed to files
by Anonymous Monk on Nov 18, 2012 at 12:57 UTC

      Yes, maybe one for the chatterbox on reflection.

      I'm reading a lot about a lot, packages,modules,symbols, today. Then this invocation frustration arose. Couldn't see the wood for the trees.

      These one liners do seem to have a way of over extending themselves.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004403]
help
Chatterbox?
[LanX]: darn. .. I wanted to see Marine and Melonchon go to next round, just for fun xD
[Discipulus]: LA use Perl: traversing a dir tree is simple; foreach file mp3 $sec+= use Mp3::Info
[Lady_Aleena]: Discipulus, I was able to get the sum of the seconds on the command line using awk. Then I ran the result through a perl script and got the result. It came bach with 4 days, 9 hours, 56 minutes, 43 seconds.
[Lady_Aleena]: s/bach/back/;
[Discipulus]: gired anyway is the intermediate state between hired and fired (and vice versa;)
[Lady_Aleena]: Discipuluis, I don't know if I want to fight with File::Find. File::Find and I are not friends.
[Discipulus]: 4 day Bach is too muche even for me
[Discipulus]: LA you know who is paco?
[Lady_Aleena]: Disc, nope.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2017-04-23 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.