>>>>> "SB" == Steve Bertrand <st...@ipv6canada.com> writes:

  SB> But alas, I get nothing, so I tried this as my last line, thinking that
  SB> the input would be put in $_:

  SB> perl -e '$_ =~ s/.*\s+//; print $_'

what input? i see none there. but what you want is either -p or -n. both
are among the most useful options for perl oneliners. look them up in
perlrun and pick which one you want.

  SB> Then, as a last resort:

  SB> perl -e '$_[0] =~ s/.*\s+//; print $_[0]'

that is just plain guessing. @_ only gets args for a sub. cli values are
in @ARGV or read from stdin. my answer above is what you want.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to