Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Idiomatic Perl?

by 1nickt (Canon)
on Mar 20, 2018 at 14:30 UTC ( [id://1211334]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Idiomatic Perl?
in thread Idiomatic Perl?

Try it! What does it return?

If it's not what you want, another approach might be to call the chomp on the result of the assignment:

chomp( my $str = <STDIN> );

Hope this helps!


The way forward always starts with a minimal test.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found