Difference between revisions of "Perl tips"

From Chuckipedia
Jump to: navigation, search
(Created page with "== Undefine vars == <pre> You have several ways to undef a list of vars already. The most simple I know is ( $from, $to ) = (); </pre> <ref> https://www.perlmonks.org/?node...")
 
Line 5: Line 5:
 
( $from, $to ) = ();  
 
( $from, $to ) = ();  
 
</pre> <ref> https://www.perlmonks.org/?node_id=426526 </ref>
 
</pre> <ref> https://www.perlmonks.org/?node_id=426526 </ref>
 +
 +
== Chop ==
 +
 +
* https://perldoc.perl.org/functions/chop.html
  
 
== References ==
 
== References ==
  
 
<references />
 
<references />

Revision as of 23:21, 16 October 2018

Undefine vars

You have several ways to undef a list of vars already. The most simple I know is
( $from, $to ) = (); 

[1]

Chop

References