Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Cutting last word from a output line

by karlgoethebier (Abbot)
on Feb 27, 2015 at 19:43 UTC ( [id://1118118]=note: print w/replies, xml ) Need Help??


in reply to Cutting last word from a output line

I assume you mean something like this:

#!/usr/bin/env perl -a use strict; use warnings; use feature qw (say); my $var = pop @F; say $var; __END__ karls-mac-mini:monks karl$ echo foo bar | ./1118114.pl bar

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found